Closed shb9793 closed 2 years ago
File "/home/shb/open-mmlab/dair-v2x/tools/dataset_converter/gen_kitti/label_json2kitti.py", line 22, in write_kitti_in_txt
i15 = str(-item["rotation"])
should be changed to
i15 = str(-eval(item["rotation"]))
Because item["rotation"]
is a str
type, not float
type.
some thing still wrong with
i15 = str(-eval(item["rotation"]))
because item["rotation"]
is a float
type in my computer, to avoid this question. I just using
i15 = str(-float(item["rotation"]))
to ensure the type of item["rotation"]
.
When I ran the following command:
The error was encountered as follows: