We follow the most of installation of CenterPoint, with slight modifications to build the environment.
- OS: Ubuntu 16.04/18.04
- Python: 3.6.5/3.7.10
- PyTorch: 1.1/1.9/1.10.1
- CUDA: 10.2 (Other version like 11.3 should also be ok but not guaranteed).
cd LinK/detection
conda create --name LinK_det python=3.6
conda activate LinK_det
conda install pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 cudatoolkit=10.2 -c pytorch
pip install -r requirements.txt
# add *LinK/detection* to PYTHONPATH by adding the following line to ~/.bashrc (change the path accordingly)
export PYTHONPATH="${PYTHONPATH}:PATH_TO_LinK/detection"
echo $PYTHONPATH # make sure the configuration works.
source ~/.bashrc
conda activate LinK_det
pip install nuscenes-devkit
# set the cuda path(change the path to your own cuda location)
export CUDA_PATH=/usr/local/cuda-10.2
export CUDA_HOME=/usr/local/cuda-10.2
export PATH=$CUDA_HOME/bin:$PATH
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
# Rotated NMS
cd ROOT_DIR/det3d/ops/iou3d_nms
python setup.py build_ext --inplace
pip install spconv-cu102
pip install ./torchsparse-u/