代码下载:https://github.com/matterport/Mask_RCNN
问题一:
出错代码行:
model.load_weights(weights_path, by_name=True)
错误显示:
Traceback (most recent call last):
File "/home/qln/workspace/Mask R-CNN/Mask_Rcnn-matterport/samples/cancer/inspect_weights.py", line 76, in <module>
model.load_weights(weights_path, by_name=True)
File "/home/qln/workspace/Mask R-CNN/Mask_Rcnn-matterport/mrcnn/model.py", line 2143, in load_weights
saving.load_weights_from_hdf5_group_by_name(f, layers)
File "/home/qln/workspace/Mask R-CNN/Mask_Rcnn-matterport/runutil/lib/python3.5/site-packages/keras/engine/saving.py", line 1149, in load_weights_from_hdf5_group_by_name
str(weight_values[i].shape) + '.')
ValueError: Layer #389 (named "mrcnn_bbox_fc"), weight <tf.Variable 'mrcnn_bbox_fc/kernel:0' shape