本次安装使用离线安装,即先下载安装包,然后再安装对应依赖包
主要安装包有:fvcore,pycocotools和detectron2包
fvcore:
参考链接:https://github.com/facebookresearch/fvcore
对应命令:
git clone https://github.com/facebookresearch/fvcore
pip install -e fvcore
pycocotools:
参考链接:https://blog.csdn.net/u013685264/article/details/100331064
对应命令:
cd cocoapi/PythonAPI
python3 setup.py build_ext --inplace
python3 setup.py build_ext install
detectron2:
参考链接:https://blog.csdn.net/notHeadache/article/details/106412425
对应命令:
git clone https://github.com/zhanghang1989/detectron2-ResNeSt.git
cd detectron2-ResNeSt && python3 -m pip install -e .