Set up the DexGrasp environment
mainTo use DexGraspNet 2.0, you need Ubuntu 20.04 and CUDA 11.7. If using different CUDA versions, you must manually adjust torch, pytorch3d, and the CUDA_HOME environment variable.
Follow these steps to create the conda environment and install dependencies:
- Create and activate the environment:
conda create -n DexGrasp python=3.8
conda activate DexGrasp- Install PyTorch and PyTorch3D:
conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.7 -c pytorch -c nvidia
# Install PyTorch3D locally
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch3d/linux-64/pytorch3d-0.7.5-py38_cu117_pyt201.tar.bz2
conda install -y --use-local ./pytorch3d-0.7.5-py38_cu117_pyt201.tar.bz2Install specialized libraries (TorchSDF, torchprimitivesdf, IsaacGym, MinkowskiEngine, etc.). Note that MinkowskiEngine requires
libopenblas-devand settingCUDA_HOME.Install Python packages via pip (plotly, open3d, graspnetAPI, wandb, etc.).
Note on NumPy: Install numpy==1.23.0. If you encounter low AP results in gripper experiments due to graspnetapi bugs, update to numpy==1.24.1 and manually replace np.float with float and np.int with int in the relevant files.
conda create -n DexGrasp python=3.8
conda activate DexGrasp
conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.7 -c pytorch -c nvidia