Ubuntu18.4 安装 detectron2
1. 安装python/pytorch环境
查看链接 https://blog.csdn.net/weixin_43742276/article/details/108801093?spm=1001.2014.3001.5501
2. Git detectron2
git clone https://github.com/facebookresearch/detectron2.git
3. 编译 detectron2
对于Linux系统,根据官方提供的命令编译,不会采坑。
https://detectron2.readthedocs.io/en/latest/tutorials/install.html
根据自己的环境选择相应的命令,并加上源,防止失败,例如:
python -m pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.9/index.html -i https://pypi.douban.com/simple/