Skip to content

Latest commit

 

History

History
70 lines (55 loc) · 2.25 KB

File metadata and controls

70 lines (55 loc) · 2.25 KB

Installation

Modified from det3d's original document.

Requirements

Notes

  • spconv and nuscenes-devkit should be the specific version from links above
  • The spconv version after this commit will consume much more memory.
  • A rule of thumb is that your pytorch cuda version must match the cuda version of your systsem for other cuda extensions to work properly.
  • For the nuscenes-devkit, our forked version changes the velocity output from nan to zero for objects without ground truth velocity.

we have tested the following versions of OS and softwares:

  • OS: Ubuntu 16.04/18.04
  • Python: 3.6.5
  • PyTorch: 1.1
  • CUDA: 10.0
  • CUDNN: 7.5.0

Advanced Installation

nuScenes dev-kit

git clone https://github.com/tianweiy/nuscenes-devkit

# add the following line to ~/.bashrc and reactivate bash (remember to change the PATH_TO_NUSCENES_DEVKIT value)
export PYTHONPATH="${PYTHONPATH}:PATH_TO_NUSCENES_DEVKIT/python-sdk"

Cuda Extensions

# set the cuda path(change the path to your own cuda location) 
export PATH=/usr/local/cuda-10.0/bin:$PATH
export CUDA_PATH=/usr/local/cuda-10.0
export CUDA_HOME=/usr/local/cuda-10.0
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH
bash setup.sh 

APEX

git clone https://github.com/NVIDIA/apex
cd apex
git checkout 5633f6  # recent commit doesn't build in our system 
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./

spconv

sudo apt-get install libboost-all-dev
git clone https://github.com/traveller59/spconv.git --recursive
cd spconv && git checkout 7342772
python setup.py bdist_wheel
cd ./dist && pip install *

Check out GETTING_START to prepare the data. Then go to the Model zoo and play with all those pretrained models.

Don't panic if you face any problems during the installation process, please feel free to open an issue.