Download the initialization weights to checkpoints/pretrain.pt and prepare the RoboTwin data.
export ROBOTWIN_DATA_ROOT=data/robotwin
python tools/text_cache.py task=robotwin
NPROC_PER_NODE=8 bash run.sh robotwinThe training configuration is robotwin.yaml, with augmentation and clean-episode selection in the data configuration.
The model uses the main Python 3.11 environment. Install the simulator separately:
python3.10 -m venv .venv-robotwin
.venv-robotwin/bin/python -m pip install torch==2.4.1 torchvision==0.19.1 \
--index-url https://download.pytorch.org/whl/cu121
.venv-robotwin/bin/python -m pip install -r eval/robotwin/requirements-sim.txt
.venv-robotwin/bin/python -m pip install --no-build-isolation -r eval/robotwin/requirements-cuda.txt
.venv-robotwin/bin/python eval/robotwin/configure_simulator.pyCUDA extensions need a GPU, C++ compiler, and CUDA 12.1 toolkit. The simulator also requires FFmpeg, Vulkan/EGL, and NVIDIA graphics libraries. For NVIDIA containers, enable NVIDIA_DRIVER_CAPABILITIES=compute,utility,graphics.
Download background_texture.zip, embodiments.zip, and objects.zip from RoboTwin2.0. Extract them into data/robotwin-assets/, then run from the main environment:
python -m eval.robotwin.setup --assets data/robotwin-assetsUse ROBOTWIN_ROOT and ROBOTWIN_PYTHON to change the defaults third_party/RoboTwin and .venv-robotwin/bin/python.
Download the RoboTwin weights to checkpoints/robotwin.pt, or set ROBOTWIN_CHECKPOINT. Prepare the backbones in the model guide.
python -m eval.robotwin.run_robotwin MULTIRUN.num_gpus=1The default evaluates clean → random on all tasks in tasks.txt. Settings are in sim_robotwin.yaml. To select one task:
python -m eval.robotwin.run_robotwin \
EVALUATION.task_name=click_bell MULTIRUN.num_gpus=1