DynamicMap_Benchmark
DynamicMap_Benchmark copied to clipboard
Incorrect label mapping in extract_semkitti.py
Hi,
In the KITTI dataset, only the lower parts of the int32s are used as labels.
I would suggest the following change (add & 0xFFFF) in extract_semkitti.py:
intensity[np.isin(labels & 0xFFFF, [252, 253, 254, 255, 256, 257, 258, 259])] = 1
This is also done in the SemanticKITTI API (evaluate_mos.py):
label = np.fromfile(label_file, dtype=np.int32)
label = label.reshape((-1)) # reshape to vector
label = label & 0xFFFF # get lower half for semantics
if FLAGS.limit is not None:
label = label[:FLAGS.limit] # limit to desired length
label = remap_lut[label] # remap to xentropy format
https://github.com/KTH-RPL/DynamicMap_Benchmark/blob/a80a9a6fe7630953b826c616a24bc2fcf20b2889/scripts/py/utils/init.py#L36
I think it is correct here.
This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs.