Skip to content

Commit

Permalink
Merge pull request #2332 from MengzhangLI/fix_basesegdataset_ignoreid
Browse files Browse the repository at this point in the history
[Fix] Fix ignore class id from -1 to 255 in BaseSegDataset in 1.x
  • Loading branch information
MeowZheng committed Nov 22, 2022
2 parents 8ea777e + cfab5b3 commit 6d7af07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmseg/datasets/basesegdataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def get_label_map(cls,
f'subset of classes {old_classes} in METAINFO.')
for i, c in enumerate(old_classes):
if c not in new_classes:
label_map[i] = -1
label_map[i] = 255
else:
label_map[i] = new_classes.index(c)
return label_map
Expand Down

0 comments on commit 6d7af07

Please sign in to comment.