|
# Getting Started |
|
|
|
Create a new conda environment for robomaster |
|
|
|
```bash |
|
conda create -n robomaster python=3.8 |
|
pip install robomaster dora-rs==0.3.3 |
|
``` |
|
|
|
Create a new conda environment for idefics2. This requirements file suppose that your using cu122. |
|
|
|
```bash |
|
conda create -n idefics2 python=3.10 |
|
conda activate idefics2 |
|
pip install -r requirements.txt |
|
pip install -e <PATH TO LATEST TRANSFOMERS VERSION> |
|
``` |
|
|
|
## Robomaster Connection |
|
|
|
Make sure to be connected using the wifi hotspot of the robomaster which is the most stable one. |
|
|
|
The default password for the hotpsot is: 12341234 |
|
|
|
You might need to have a second wifi card if you want to be able to run the demo with internet on. |
|
|
|
## Post-Installation test |
|
|
|
Please try running idefics2 with: |
|
|
|
```bash |
|
conda activate idefics2 |
|
python tests/test_idefics2.py |
|
``` |
|
|
|
Please try running robomaster with: |
|
|
|
```bash |
|
conda activate robomaster |
|
python tests/test_robomaster.py |
|
``` |
|
|
|
## Running the demo |
|
|
|
```bash |
|
export HF_TOKEN=<TOKEN> |
|
conda activate idefics2 |
|
# This requires dora==0.3.3, update with: |
|
# cargo install dora-cli |
|
dora up |
|
dora start graphs/dataflow_robot_vlm.yml --attach --hot-reload |
|
``` |
|
|
|
Current way to interact is by press up arrow key on laptop to record a message and send to the VLM |
|
|
|
## Running the demo without robot |
|
|
|
```bash |
|
export HF_TOKEN=<TOKEN> |
|
conda activate idefics2 |
|
# This requires dora==0.3.3, update with: |
|
# cargo install dora-cli |
|
dora up |
|
dora start graphs/dataflow_vlm_basic.yml --attach --hot-reload |
|
``` |
|
|
|
Current way to interact is by press up arrow key on laptop to record a message and send to the VLM |
|
|
|
## Kill process in case of failure |
|
|
|
Due to a Python GIL issue, we currently meed to kill processes manually. You can use the following command to do so: |
|
|
|
```bash |
|
pkill -f 'import dora;' |
|
``` |
|
|