Skip to content
Snippets Groups Projects
Unverified Commit 6d7af070 authored by Miao Zheng's avatar Miao Zheng Committed by GitHub
Browse files

Merge pull request #2332 from MengzhangLI/fix_basesegdataset_ignoreid

[Fix] Fix ignore class id from -1 to 255 in BaseSegDataset in 1.x
parents 8ea777e2 cfab5b39
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ class BaseSegDataset(BaseDataset):
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment