LPCG
LPCG copied to clipboard
[Errno 2] No such file or directory: './data/kitti/kitti_merge/training/calib_cam2cam/000000.txt'
I meet some troubles, can you give me some advice? thanks
100%|██████████| 33530/33530 [00:04<00:00, 7491.90it/s]
0%| | 0/33530 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/media/optobot-02/document/haosenWang/code/LPCG-master/link_kitti_raw.py", line 55, in
Process finished with exit code 1
It seems that the path is wrong, but I tried to change the .Py file path to the data file path. It still doesn't work
You can check the dir path (e.g., "./data/kitti/kitti_merge/training/calib_cam2cam", "./data/kitti/kitti_merge" and so on) to locate the path problem.
I also met this error, this is a wrong use of os.symlink since the source path is relative to the linked path, so here's how I solved it:
- add
lpcgdir = os.getcwd()
at the beginning of 'link_kitti_raw.py'. - revise the for-loop at line 39 to
os.symlink(os.path.join(lpcgdir, img_list[i][2:]), os.path.join(image_dst_dir, base_name+'.png'))
os.symlink(os.path.join(lpcgdir, lidar_list[i][2:]), os.path.join(lidar_dst_dir, base_name+'.bin'))
os.symlink(os.path.join(lpcgdir, cam2cam[i][3:]), os.path.join(cam2cam_dst_dir, base_name+'.txt'))
os.symlink(os.path.join(lpcgdir, vel2cam[i][3:]), os.path.join(vel2cam_dst_dir, base_name+'.txt'))
(adjust the tabs yourself)
Thanks for your feedback! I will check and revise the code.