小编Bad*_*dum的帖子

从 github 导入 Matterport 的 Mask-RCNN 模型 - 错误:ZipImportError:错误的本地文件头

我尝试从 github 导入 Matterport 的 Mask-RCNN 模型,但出现错误。我做错了什么?

# Import Mask RCNN
sys.path.append(os.path.join(ROOT_DIR, 'Mask_RCNN'))  # To find local version of the library
from mrcnn.config import Config
from mrcnn import utils
import mrcnn.model as modellib
from mrcnn import visualize
from mrcnn.model import log
Run Code Online (Sandbox Code Playgroud)

输出:

---------------------------------------------------------------------------
ZipImportError                            Traceback (most recent call last)
<ipython-input-17-19fc18cf001a> in <module>
      4 from mrcnn import utils
      5 import mrcnn.model as modellib
----> 6 from mrcnn import visualize
      7 from mrcnn.model import log

ZipImportError: bad local file header: '/home/wojtek/anaconda3/lib/python3.6/site-packages/mask_rcnn-2.1-py3.6.egg'


Run Code Online (Sandbox Code Playgroud)

deep-learning

0
推荐指数
1
解决办法
1万
查看次数

标签 统计

deep-learning ×1