Skip to content
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

kitti_data/train.txt file is missing #4

Open
ghimiremukti opened this issue Apr 4, 2018 · 7 comments
Open

kitti_data/train.txt file is missing #4

ghimiremukti opened this issue Apr 4, 2018 · 7 comments

Comments

@ghimiremukti
Copy link

ghimiremukti commented Apr 4, 2018

following the tutorial (https://medium.com/@sshleifer/how-to-finetune-tensorflows-object-detection-models-on-kitti-self-driving-dataset-c8fcfe3258e9), object_detection_kitti/object_detection/kitti_data directory which further contains training and testing images and labels as below

capture

When run
$ cd object_detection_kitti/object_detection
$ python create_dataset.py

it throws an error:

File "create_dataset.py", line 182, in
do_kitti_ingest()
File "/home/train/anaconda2/lib/python2.7/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/home/train/anaconda2/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/train/anaconda2/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/train/anaconda2/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "create_dataset.py", line 173, in do_kitti_ingest
VOC_TRAIN_DIR, os.path.join(data_dir, 'train.txt'))
File "/home/train/tftrain/object_detection_kitti/object_detection/kitti_to_voc.py", line 15, in kitti_to_voc
train_ids=train_id_path)
File "/home/train/tftrain/object_detection_kitti/object_detection/vod_converter/converter.py", line 136, in convert
image_detections = ingestor.ingest(from_path, train_ids)
File "/home/train/tftrain/object_detection_kitti/object_detection/vod_converter/kitti.py", line 64, in ingest
image_ids = self._get_image_ids()
File "/home/train/tftrain/object_detection_kitti/object_detection/vod_converter/kitti.py", line 85, in _get_image_ids
with open(self.train_id_path) as f:
IOError: [Errno 2] No such file or directory: u'kitti_data/train.txt'

it seems "kitti_data/train.txt" file should be there. where is this file coming from? or if $ python create_dataset.py creates it, then why it is asked beforehand.

@ghimiremukti
Copy link
Author

I am hoping someone is looking at this issue I faced :-(

@sshleifer
Copy link
Owner

Good catch! If you git pull create_dataset should create train.txt as a side effect, I believe

@ghimiremukti
Copy link
Author

Hi @sshleifer , thanks for the reply. Now could you tell how can we generate it, before running $ python create_dataset.py ?

@ghimiremukti
Copy link
Author

ghimiremukti commented Apr 9, 2018

after adding 'kitti_data/train.txt' manually, another error pops up:

.....
.....
.....
File "/home/train/tftrain/object_detection_kitti/object_detection/vod_converter/kitti.py", line 102, in _get_detections
with open(detections_fpath) as f:
IOError: [Errno 2] No such file or directory: u'/home/train/tftrain/object_detection_kitti/object_detection/kitti_data/training/label_2/.txt'

I think just by adding 'kitti_data/train.txt' didn't solve the issue means the error is somewhere deeper.

Please try running user@...:object_detection_kitti/object_detection$ python create_dataset.py, and you will see the error. Thanks.

@sshleifer
Copy link
Owner

sshleifer commented Apr 9, 2018 via email

@ghimiremukti
Copy link
Author

I did run $run create_dataset.py several times, but no luck.

@sshleifer
Copy link
Owner

sshleifer commented Apr 9, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants