-
Notifications
You must be signed in to change notification settings - Fork 403
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
ValueError: not enough values to unpack (expected 2, got 1) #101
Comments
There has been changes in the KITTI dataset, please see the calibration dataset there is an : missing in the R_rect, Tr_velo_cam and Tr_imu_velo and key names are different in the code given in the repo. Making these changes will lead to successful execution. |
An example of calibration file: P0: 7.215377000000e+02 0.000000000000e+00 6.095593000000e+02 0.000000000000e+00 0.000000000000e+00 7.215377000000e+02 1.728540000000e+02 0.000000000000e+00 0.000000000000e+00 0.000000000000e+00 1.000000000000e+00 0.000000000000e+00 Since you don't have : character for splitting R_rect Tr_velo_cam Tr_imu_velo it gives you error. You can simply add : to continue with the same code as follows |
Can you please give me a more detailed guide, I don't know how to do it |
You have to arrange the calibration file strings like this So just add ":" without any space |
Got it, thanks a lot! |
You're welcome! |
I encountered a new problem in the new join:later. KeyError: 'Tr_velo_to_cam' |
Modify the Tr_velo_to_cam to Tr_velo_cam in kitti_calib.py |
I wrote a script to make it easier to change the format, you just need to change the parent_path。 |
|
Hello, when I use the KITTI benchmark dataset and run "main.py", the following error is reported and I would like to know how to fix it.
Traceback (most recent call last):
File "main.py", line 140, in
main(args)
File "main.py", line 129, in main
ID_start = main_per_cat(cfg, cat, log, ID_start)
File "main.py", line 48, in main_per_cat
tracker, frame_list = initialize(cfg, trk_root, save_dir, subfolder, seq_name, cat, ID_start, hw, log)
File "/media/AB3DMOT/AB3DMOT_libs/utils.py", line 93, in initialize
calib = Calibration(calib)
File "/media/AB3DMOT/AB3DMOT_libs/kitti_calib.py", line 57, in init
calibs = self.read_calib_file(calib_filepath)
File "/media/AB3DMOT/AB3DMOT_libs/kitti_calib.py", line 95, in read_calib_file
key, value = line.split(':', 1)
ValueError: not enough values to unpack (expected 2, got 1)
The text was updated successfully, but these errors were encountered: