Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 1.47 KB

install.md

File metadata and controls

66 lines (53 loc) · 1.47 KB

installation

Detailed package versions can be found in requirements.txt.

a. Create a conda virtual environment and activate it.

conda create -n genad python=3.8 -y
conda activate genad

b. Install PyTorch and torchvision following the official instructions.

pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
# Recommended torch>=1.9

c. Install gcc>=5 in conda env (optional).

conda install -c omgarcia gcc-5 # gcc-6.2

c. Install mmcv-full.

pip install mmcv-full==1.4.0
#  pip install mmcv-full==1.4.0 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html

d. Install mmdet and mmseg.

pip install mmdet==2.14.0
pip install mmsegmentation==0.14.1

e. Install timm.

pip install timm

f. Install mmdet3d.

conda activate genad
git clone https://github.com/open-mmlab/mmdetection3d.git
cd /path/to/mmdetection3d
git checkout -f v0.17.1
python setup.py develop

g. Install nuscenes-devkit.

pip install nuscenes-devkit==1.1.9

h. Clone GenAD.

git clone https://github.com/wzzheng/GenAD.git

i. Prepare pretrained models.

cd /path/to/GenAD
mkdir ckpts
cd ckpts 
wget https://download.pytorch.org/models/resnet50-19c8e357.pth