查看版本
- 查看python版本
python3.7 - 查看cuda版本
cuda版本11.0(一般安装命令中就是cu110)
创建虚拟环境
conda create -n env_name python = 3.7 anaconda
conda create -n env_name python = 3.7 --offline
conda create --name my_env_name --clone env_name
安装pytorch
pip uninstall torch torchvision -y
pip install torch==1.7.0+cu110 torchvision==0.8.1+cu110 -f https://download.pytorch.org/whl/torch_stable.html
conda install pytorch==1.7.0 torchvision==0.8.1 cudatoolkit=11.0 -c pytorch
安装mmdetection
rm -rf mmdetection
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
pip install -r requirements/build.txt
pip install -v -e .
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7.0/index.html
|