栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

ubuntu detectron2的安装

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ubuntu detectron2的安装

Ubuntu20.04下detectron2的安装 安装依赖库

安装fvcore:

pip install fvcore

安装pycocotools:

直接安装:

pip install -U 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'

或者:

git clone https://github.com/cocodataset/cocoapi.git
cd cocoapi/PythonAPI
python3 setup.py install
安装detectron2:

由于在本地编译detectron2总是不成功,所以直接安装编译好的二进制文件,/cu111/表示cuda版本是11.1,要改成本地的cuda版本。

pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu111/index.html

上述命令安装完成后,还是会报下面的错误

from detectron2 import _C
ImportError: /usr/local/lib/python3.7/dist-packages/detectron2/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: 

解决

git clone https://github.com/facebookresearch/detectron2.git
python -m pip install -e detectron2
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/870904.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号