IndexError: boolean index did not match indexed array along dimension 0; dimension is 82 but corresp

在训练maskrcnn时出现以上报错,通过一天的琢磨、debug、掉头发。才发现是标签数据的问题。

解决办法:

1、运行trian文件,程序一般会训练一个epoch才会停止,记录下出现问题的标签的id

2、将出现问题的标签重新标定

3、由于我的数据集是进行数据增强过的,所以我把有问题的标签重新进数据增强。(关于maskrcnn如何数据增强,请参考我往期博客)

附其他博文参考链接:mask-rcnn报错: IndexError: boolean index did not match indexed array along dimension 0; ......_君临天下tjm的博客-CSDN博客

你可能感兴趣的:(python,深度学习,计算机视觉)