本文给出的linux系统的安装教程
(1)
conda create --name d2 python=3.9
conda activate d2
(2)
conda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1
(3)
python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
(4)
cd project/
cd code/
(5)
git clone https://github.com/facebookresearch/detectron2.git
pip install matplotlib
pip install cython
pip install pycocotools -i https://pypi.tuna.tsinghua.edu.cn/simpl
(6)
python -m pip install -e detectron2