Open jimvermunt opened 9 months ago
In convert_annotation.py:
type = release_dataset_label_map[int(line[1])]
Throws error: /utils/convert_annotations.py", line 53, in convert
type = release_dataset_label_map[int(line[1])]
ValueError: invalid literal for int() with base 10: '80.00'
This problem was resolved by replacing the line with the following:
type = release_dataset_label_map[int(float(line[1]))]
When adjusting this I get the following KeyError in file 2019_05_09_bm1s007/text_labels/0000000635.csv:
./data/Automotive/2019_05_09_bm1s007/text_labels/0000000635.csv
Traceback (most recent call last):
File "convertFormat.py", line 30, in <module>
convert(full_path)
File "/home/tue/20204239/77ghzradarpipeline/Radar-multiple-perspective-object-detection/utils/convert_annotations.py", line 54, in convert
type = release_dataset_label_map[int(float(line[1]))]
KeyError: 1
This due that the mapping of 1 does not exist in the map "release_dataset_label_map" in convert_annotations.py.
The file has the following content.
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
24 | 2 | -0.39 | 16.4 | 4.5 | 1.8 -- | -- | -- | -- | -- | -- 20 | 2 | 4.26 | 10.69 | 1.8 | 4.5 17 | 2 | 5.41 | 7.39 | 1.8 | 4.5 297 | 2 | 5.08 | 5.17 | 1.8 | 4.5 34 | 1 | -4.06 | 3.77 | 0.6 | 1.7
I have adjusted the converFormat.py to automating the task.
Changed it to:
With this I ran into several problems.