MMdetection虚拟环境安装
- 创建虚拟环境并激活
conda create -n open-mmlab python=3.7 -y
source activate open-mmlab
- 安装PyTorch 和Torchvision
conda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 cudatoolkit=11.3 -c pytorch -c conda-forge
- 安装mmcv-full
pip install mmcv-full==1.4.2 -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.10.0/index.html
- 安装mmdet
pip install mmdet==2.19.1
- 克隆mmdetection并编译
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
pip install -v -e .