Ubuntu18.04安装detectron2

本次安装使用离线安装,即先下载安装包,然后再安装对应依赖包
主要安装包有: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 .
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容