1 Star 1 Fork 0

mirrors/MapTR

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install.md 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
BCLiao 提交于 2年前 . update installation doc

Step-by-step installation instructions

Following https://mmdetection3d.readthedocs.io/en/latest/getting_started.html#installation

a. Create a conda virtual environment and activate it.

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

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. Clone MapTR.

git clone https://github.com/hustvl/MapTR.git

g. Install mmdet3d and GKT

cd /path/to/MapTR/mmdetection3d
python setup.py develop

cd /path/to/MapTR/projects/mmdet3d_plugin/maptr/modules/ops/geometric_kernel_attn
python setup.py build install

h. Install other requirements.

cd /path/to/MapTR
pip install -r requirement.txt

i. Prepare pretrained models.

cd /path/to/MapTR
mkdir ckpts

cd ckpts 
wget https://download.pytorch.org/models/resnet50-19c8e357.pth
wget https://download.pytorch.org/models/resnet18-f37072fd.pth
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/minhanghuang/MapTR.git
git@gitee.com:minhanghuang/MapTR.git
minhanghuang
MapTR
MapTR
LegendBC-patch-1

搜索帮助

371d5123 14472233 46e8bd33 14472233