MaskRCNN时出现了dlopen “no suitable image found ”问题之解决

在进行MaskRCNN 的demo的训练的时候, import coco的时候出现dlopen “no suitable image found ”问题

起初的时候不知道是什么情况,在经过各处的查询之后终于发现了真相,主要是需要安装pycocotools,在看代码的时候,pycocotools文件夹是在里面包含的,所以没有关注,但是在guihub找到了大佬开源的windows的API,但是本人的是mac本

但是按照同样地方法同样适用

github问题链接:https://github.com/philferriere/cocoapi

问题的原因为:It happens because there is a pycocotools directory in the same folder as the notebooks. The python code being imported then is the local implementation of pycocotools, not the one installed with pip. To fix this issue, the demo notebooks have been moved to their own directory

知道原因之后,下面为解决问题的方案:

第一步:

git clone https://github.com/pdollar/coco.git

第二步:

cd coco/PythonAPI

python setup.py build_ext --inplace

第三步:

python setup.py build_ext install

经过上面三个步骤,已经安装好了pycocotools到python库了,进入python3命令行就可以直接导入了,执行下面命令不报错说明已经安装成功了

在重新运行MaskRCNN中的demo文件,运行成功

顺便欣赏一下运行的结果:

 

 

 


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值