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

inquiry meaning about " label - 1" , thanks!! #44

Open
emilyemliyM opened this issue Feb 18, 2022 · 1 comment
Open

inquiry meaning about " label - 1" , thanks!! #44

emilyemliyM opened this issue Feb 18, 2022 · 1 comment

Comments

@emilyemliyM
Copy link

Dear author,
I got confused about func "SemKITTI2train_single" about "label-1".
what does the function want to do?

def SemKITTI2train(label):
if isinstance(label, list):
return [SemKITTI2train_single(a) for a in label]
else:
return SemKITTI2train_single(label)

def SemKITTI2train_single(label):
return label - 1 # uint8 trick

@edwardzhou130
Copy link
Owner

SemanticKITTI uses label 0 as the 'unlabeled' class.

learning_map_inv: # inverse of previous map
0: 0 # "unlabeled", and others ignored
1: 10 # "car"
2: 11 # "bicycle"
3: 15 # "motorcycle"
4: 18 # "truck"
5: 20 # "other-vehicle"
6: 30 # "person"
7: 31 # "bicyclist"
8: 32 # "motorcyclist"
9: 40 # "road"
10: 44 # "parking"
11: 48 # "sidewalk"
12: 49 # "other-ground"
13: 50 # "building"
14: 51 # "fence"
15: 70 # "vegetation"
16: 71 # "trunk"
17: 72 # "terrain"
18: 80 # "pole"
19: 81 # "traffic-sign"

Our model won't predict this class during training. So each gt label needs to be shifted down by 1 when calculating the loss.

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