weixin_39894914
weixin_39894914
2020-12-09 04:37

ic15测试进行到一半时报错

进行到第7/500张时,出现报错


1%|█▎                                                                                             | 7/500 [00:01<01:42,  4.83it/s]

......

File "/home/licaiyuan/ocr/ContourNet/maskrcnn_benchmark/data/datasets/word_dataset.py", line 98, in __getitem__
    target = target.clip_to_image(remove_empty=True)
  File "/home/licaiyuan/ocr/ContourNet/maskrcnn_benchmark/structures/bounding_box.py", line 228, in clip_to_image
    return self[keep]
  File "/home/licaiyuan/ocr/ContourNet/maskrcnn_benchmark/structures/bounding_box.py", line 213, in __getitem__
    bbox.add_field(k, v[item])
  File "/home/licaiyuan/ocr/ContourNet/maskrcnn_benchmark/structures/segmentation_mask.py", line 514, in __getitem__
    selected_instances = self.instances.__getitem__(item)
  File "/home/licaiyuan/ocr/ContourNet/maskrcnn_benchmark/structures/segmentation_mask.py", line 423, in __getitem__
    selected_polygons.append(self.polygons[i])
IndexError: list index out of range

检查了一下ic15_test.json,id=7的图只有一个annotation,而1-6的几张图都有多个annotation,不知道是不是由这个引起的某种边界问题。

该提问来源于开源项目:wangyuxin87/ContourNet

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

7条回答

为你推荐

换一换