报错:File "/FCOS/fcos_core/modeling/rpn/fcos/loss.py", line 68, in get_sample_region
if center_x[..., 0].sum() == 0:
IndexError: index 0 is out of bounds for dimension 1 with size 0
这个错误在https://github.com/tianzhi0549/FCOS/issues/190 中可以找到
出错可能原因:
1、数据损坏;
2、有数据不含有标签(groundtruth);
3、标签框的xmin <= xmax;
我在使用自己的数据训练时(pascal voc格式)报错,原因是第三条,我的数据其中一些标注框的xmin == xmax。