报错这个问题:KeyError: 'max_overlaps'
解决方法:删除py-faster-rcnn/data/VOCdevkit2007/annotations_cache
annotations_cache 这个文件夹
删除 py-faster-rcnn/data/cache
cache 这个文件夹
测试时报错:Cannot copy param 0 weights from layer 'cls_score'; shape mismatch.
Source param shape is 11 4096 (86016); target param shape is 19 4096
(12288). To learn this layer's parameters from scratch rather than
copying from a saved net, rename the layer.
把text.prototxt中的cls_score改为cls_score1
问题:模型训练完测试模型正常,跑测试集结果MAP是0.00。
解决:训练数据的XML文件中,目标物体标签是大写,需要转换成小写。
本文解决了一系列Faster R-CNN模型训练及测试过程中出现的问题,包括 KeyError 'max_overlaps'、参数形状不匹配及 mAP 值为 0 的情况。提供了详细的错误定位与解决步骤。

1270

被折叠的 条评论
为什么被折叠?



