NVIDIA / DIGITS

Deep Learning GPU Training System
https://developer.nvidia.com/digits
BSD 3-Clause "New" or "Revised" License
4.12k stars 1.38k forks source link

Splitting the Kitti Dataset using prepare_kitti_data.py #1733

Open Harshitha94 opened 7 years ago

Harshitha94 commented 7 years ago

When using the given script 'prepare_kitti_data.py' to split the dataset into training and validation images, I am getting the following error...

Extracting zipfiles ... Unzipping data_object_label_2.zip ... Unzipping data_object_image_2.zip ... Unzipping devkit_object.zip ... Calculating image to video mapping ... Traceback (most recent call last): File "prepare_kitti_data.py", line 182, in os.path.join(args.output_dir, 'raw'), File "prepare_kitti_data.py", line 39, in get_image_to_video_mapping with open(os.path.join(devkit_dir, 'mapping', 'train_mapping.txt'), 'r') as infile: IOError: [Errno 2] No such file or directory: 'kitti-data/raw/mapping/train_mapping.txt'

Line 182 in the script is:

os.path.join(args.output_dir, 'raw')

Changing this line to

os.path.join(args.output_dir, 'raw', 'devkit')

solved this issue.

Just letting you know :)

TheMikeyR commented 7 years ago

I've encountered this issue when I stopped the script (before completion) and then executed it again, I fixed the issue by removing the folder kitti-data and then executed the script.