s2anet icon indicating copy to clipboard operation
s2anet copied to clipboard

图片预处理时出现错误

Open yx618 opened this issue 2 years ago • 1 comments

我在处理dota1.5数据集的时侯,出现了如下错误,请问一下我该如何解决?谢谢

File "/home/speech/cipan/s2anet/DOTA_devkit/convert_dota_to_mmdet.py", line 66, in convert_dota_to_mmdet bboxes, labels, bboxes_ignore, labels_ignore = parse_ann_info(label_path, img_name) File "/home/speech/cipan/s2anet/DOTA_devkit/convert_dota_to_mmdet.py", line 32, in parse_ann_info labels.append(label_ids[class_name]) KeyError: 'container-crane'

yx618 avatar Dec 15 '21 07:12 yx618

添加 'container-crane': https://github.com/csuhan/s2anet/blob/d2870963815b10c8f7796577e30b7c3b14e47ac6/DOTA_devkit/convert_dota_to_mmdet.py#L10-L14

csuhan avatar Dec 16 '21 18:12 csuhan