object_detection_kitti icon indicating copy to clipboard operation
object_detection_kitti copied to clipboard

kitti_data/train.txt file is missing

Open ghimiremukti opened this issue 6 years ago • 7 comments

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 avatar Apr 04 '18 00:04 ghimiremukti

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

ghimiremukti avatar Apr 09 '18 17:04 ghimiremukti

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

sshleifer avatar Apr 09 '18 17:04 sshleifer

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

ghimiremukti avatar Apr 09 '18 18:04 ghimiremukti

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.

ghimiremukti avatar Apr 09 '18 19:04 ghimiremukti

you can either run create_dataset again or you can read the code On Mon 9. Apr 2018 at 20:52, ghimiremukti [email protected] wrote:

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

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/sshleifer/object_detection_kitti/issues/4#issuecomment-379855978, or mute the thread https://github.com/notifications/unsubscribe-auth/AFw9YfZ1873OriCjH8D0BAPkzfKAP9BZks5tm63UgaJpZM4TF_qB .

sshleifer avatar Apr 09 '18 19:04 sshleifer

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

ghimiremukti avatar Apr 09 '18 19:04 ghimiremukti

works on my machine, feel free to fix and send a pull request!

On Mon 9. Apr 2018 at 21:51, ghimiremukti [email protected] wrote:

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

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/sshleifer/object_detection_kitti/issues/4#issuecomment-379873229, or mute the thread https://github.com/notifications/unsubscribe-auth/AFw9YbteF4IH_ZUNgVMGGbQMWB39s46Lks5tm7vdgaJpZM4TF_qB .

sshleifer avatar Apr 09 '18 22:04 sshleifer