小编LeB*_*hen的帖子

KeyError:“无法打开对象(错误的 B 树签名)”

当我运行基于 Mask R-CNN 的项目时,我遇到了这个问题。配置为 cuda=9.0 cudnn=7.1.4 tensorflow-gpu=1.9.0 和 keras-gpu=2.2.4 但是,当这个程序在 Windows10 中运行时。它遇到了上述问题,更详细地描述如下:

 Traceback (most recent call last):

   File "<ipython-input-5-e5959b6300f2>", line 1, in <module>
    runfile('D:/Mask R-CNN/test.py', wdir='D:/Mask R-CNN')

   File "D:\Anaconda3\Anaconda3-5.3.0\envs\cv2\lib\site- 
    packages\spyder_kernels\customize\spydercustomize.py", line 704, in runfile
    execfile(filename, namespace)

   File "D:\Anaconda3\Anaconda3-5.3.0\envs\cv2\lib\site- 
    packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

   File "D:/Mask R-CNN/test.py", line 49, in <module>
    model.load_weights(COCO_MODEL_PATH, by_name=True, exclude=[ 
   "mrcnn_class_logits", "mrcnn_bbox_fc"])

   File "D:\Mask R-CNN\mrcnn\model.py", line 2131, in load_weights
    saving.load_weights_from_hdf5_group_by_name(f, layers)

   File "D:\Anaconda3\Anaconda3-5.3.0\envs\cv2\lib\site- 
    packages\keras\engine\saving.py", line 1104, in 
    load_weights_from_hdf5_group_by_name
    g = f[name]

   File "h5py\_objects.pyx", …
Run Code Online (Sandbox Code Playgroud)

python-3.x tensorflow

5
推荐指数
1
解决办法
1483
查看次数

标签 统计

python-3.x ×1

tensorflow ×1