github地址:https://github.com/aim-uofa/AdelaiDet/
command:
#创建激活环境
conda create -n solo python=3.7 -y
conda activate solo
conda install pytorch torchvision -c pytorch
pip install torchvision
#cocoapi
cd /home/zhu3/xry/AdelaiDet/cocoapi/PythonAPI/
python setup.py develop
#安装Detectron2
pip install opencv-python
cd /home/zhu3/xry/AdelaiDet/detectron2-master/
python setup.py build develop
#训练(CUDA_VISIBLE_DEVICES=0,3指定了gpu,不需要可以去掉)
CUDA_VISIBLE_DEVICES