Please follow the instructions to install the conda environments and the dependencies of the codebase. We recommend using CUDA 12.1 during installations to avoid compatibility issues.
-
Create a new conda environment and activate the environment.
conda create -n rise2 python=3.10 conda activate rise2
-
Manually install cudatoolkit, then install necessary dependencies.
pip install -r requirements.txt
-
Install MinkowskiEngine. We have modified MinkowskiEngine for better adpatation.
mkdir dependencies && cd dependencies conda install openblas-devel -c anaconda export CUDA_HOME=/path/to/cuda git clone git@github.com:chenxi-wang/MinkowskiEngine.git cd MinkowskiEngine git checkout cuda-12-1 # Uncomment the following line if you are using CUDA 12.8. # sed -i 's/\bauto __raw = __to_address(__r.get());/auto __raw = std::__to_address(__r.get());/' /usr/include/c++/11/bits/shared_ptr_base.h python setup.py install --blas_include_dirs=${CONDA_PREFIX}/include --blas_library_dirs=${CONDA_PREFIX}/lib --blas=openblas cd ../..
-
Install Pytorch3D manually.
cd dependencies git clone git@github.com:facebookresearch/pytorch3d.git cd pytorch3d pip install -e . cd ../..
-
Prepare the
weightsfolder to store the pre-trained models.mkdir weightsDownload the pretrained models from v2/v3 and put them into corresponding folders. The folder structure is as follows:
RISE-2/ |-- ... `-- weights/ |-- dinov2-base/ | |-- model.safetensors | |-- ... | `-- config.json `-- dinov3-base/
We have tested the RISE-2 policy on both single-arm and dual-arm robot platforms.
The single-arm platform consists of:
- Flexiv Rizon 4 Robotic Arm
- Dahuan AG-95 Gripper
- Intel RealSense D435 RGB-D Camera
The dual-arm platform consists of:
- Flexiv Rizon 4 Robotic Arms (Dual-Arm)
- Robotiq 2F-85 Grippers
- Intel RealSense D415 RGB-D Camera
Additional Dependencies (tested on Ubuntu 20.04)
- If you are using Flexiv Rizon robotic arm, install the Flexiv RDK to allow the remote control of the arm. Specifically, download FlexivRDK v1.5.1 and copy
lib_py/flexivrdk.cpython-38-[arch].soto thedevice/directory. Please specify[arch]according to your settings. For our platform,[arch]isx86_64-linux-gnu. - If you are using Robotiq 2F-85 grippers, install the following python packages for communications.
pip install pyserial==3.5 - If you are using Intel RealSense RGB-D camera, install the python wrapper
pyrealsense2oflibrealsenseaccording to the official installation instructions.