A from-scratch setup script
conda create -n openmmlab python=3.7 -y
conda activate openmmlab
conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=10.1 -c pytorch -y
# install the latest mmcv
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.6.0/index.html
# install mmdetection
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
pip install -r requirements/build.txt
pip install -v -e .
注意点:
pip install -v -e .? # or "python setup.py develop"
当指定 -e 或者 develop 的时候 MMDetection 使用安装dev 模式安装,对代码所做的任何本地修改都会生效,无需重新安装。
|