MMdetection TypeError: ‘NoneType‘ object is not iterable

报错问题:MMdetection TypeError: ‘NoneType’ object is not iterable@TOC

使用mask_rcnn进行目标检测,无mask标签

当其它的网络如:faster_rcnn可以正常运行时,说明数据集没有问题!
而运行mask_rcnn时,报错TypeError: ‘NoneType’ object is not iterable
查资料发现,标签中只有类别标签,没有mask标签,因此应该把mask_rcnn_r50_fpn.py文件中的mask部分删除,MMdetection TypeError: ‘NoneType‘ object is not iterable_第1张图片
删除完,如下图,注意括号对应起来
MMdetection TypeError: ‘NoneType‘ object is not iterable_第2张图片
另外,需要将coco_instance.py的内容全部替换为coco_detection.py的内容,因为coco_detection是检测,coco_instance包含了检测和分割
MMdetection TypeError: ‘NoneType‘ object is not iterable_第3张图片

参考资料

https://github.com/open-mmlab/mmdetection/issues/6231

你可能感兴趣的:(自学,目标检测,深度学习,计算机视觉)