Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片预处理时出现错误 #123

Open
yx618 opened this issue Dec 15, 2021 · 1 comment
Open

图片预处理时出现错误 #123

yx618 opened this issue Dec 15, 2021 · 1 comment

Comments

@yx618
Copy link

yx618 commented Dec 15, 2021

我在处理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'

@csuhan
Copy link
Owner

csuhan commented Dec 16, 2021

添加 'container-crane':

wordname_15 = ['plane', 'baseball-diamond', 'bridge', 'ground-track-field',
'small-vehicle', 'large-vehicle', 'ship', 'tennis-court',
'basketball-court', 'storage-tank', 'soccer-ball-field', 'roundabout',
'harbor', 'swimming-pool', 'helicopter']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants