我正在尝试从cocoapi(https://github.com/cocodataset/cocoapi)训练Mask-R CNN模型,这个错误代码一直出现。
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-8-83356bb9cf95> in <module>
19 sys.path.append(os.path.join(ROOT_DIR, "samples/coco/")) # To find local version
20
---> 21 from pycocotools.coco import coco
22
23 get_ipython().run_line_magic('matplotlib', 'inline ')
~/Desktop/coco/PythonAPI/pycocotools/coco.py in <module>
53 import copy
54 import itertools
---> 55 from . import mask as maskUtils
56 import os
57 from collections import defaultdict
~/Desktop/coco/PythonAPI/pycocotools/mask.py in <module>
1 __author__ = 'tsungyi'
2
----> 3 import pycocotools._mask as _mask
4
5 # Interface for manipulating masks stored in RLE format.
ModuleNotFoundError: No module named 'pycocotools._mask'我尝试了github“问题”选项卡上的所有方法,但对我来说根本不起作用。有没有其他的解决方案?我使用的是Python 3.6,Linux。
发布于 2021-05-13 18:53:04
尝试克隆官方存储库并运行以下命令
python setup.py install
makehttps://stackoverflow.com/questions/65753830
复制相似问题