Skip to content

Commit

Permalink
[Fix] Fix ignore class id from -1 to 255 in BaseSegDataset in 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
MengzhangLI committed Nov 21, 2022
1 parent 8ea777e commit cfab5b3
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 cfab5b3

Please sign in to comment.