Please install MMDetection3D <= v0.18.1, since the coordinate systems are refactored in versions v1.x.x, for which this code may not work.
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/{cu_version}/{torch_version}/index.html
examples:
pip install mmcv-full==1.4.0 -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
git checkout v2.19.0
sudo pip install -r requirements/build.txt
sudo python3 setup.py develop
cd ..
sudo pip install mmsegmentation==0.14.1
git clone https://github.com/open-mmlab/mmdetection3d.git
cd mmdetection3d
git checkout v0.17.3
sudo pip install -r requirements/build.txt
sudo python3 setup.py develop
cd ..
git clone https://github.com/fudan-zvg/PolarFormer
cd PolarFormer
mkdir ckpts
mkdir data
ln -s {mmdetection3d_path} ./mmdetection3d
ln -s {nuscenes_path} ./data/nuscenes
examples
git clone https://github.com/fudan-zvg/PolarFormer
cd PolarFormer
mkdir ckpts ###pretrain weights
mkdir data ###dataset
ln -s ../mmdetection3d ./mmdetection3d
ln -s /data/Dataset/nuScenes ./data/nuscenes