raccoon_dataset icon indicating copy to clipboard operation
raccoon_dataset copied to clipboard

no such file or directory

Open ghost opened this issue 7 years ago • 8 comments

When converting to tf_record, I will deal with the following problem: untitled

ghost avatar Apr 28 '18 05:04 ghost

Same issue here

LeeroyJK avatar Jun 14 '18 21:06 LeeroyJK

same issue here also, anybody got any solution of this problem please help

Traceback (most recent call last): File "F:/Object_detection/generate_tfrecord.py", line 98, in tf.app.run() File "C:\Users\Harjeet\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\platform\app.py", line 126, in run _sys.exit(main(argv)) File "F:/Object_detection/generate_tfrecord.py", line 89, in main tf_example = create_tf_example(group, path) File "F:/Object_detection/generate_tfrecord.py", line 44, in create_tf_example encoded_jpg = fid.read() File "C:\Users\Harjeet\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 120, in read self._preread_check() File "C:\Users\Harjeet\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 80, in _preread_check compat.as_bytes(self.__name), 1024 * 512, status) File "C:\Users\Harjeet\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 516, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: F:\Object_detection\images\pic3.jpeg : The system cannot find the file specified. ; No such file or directory

Technebby avatar Jul 11 '18 18:07 Technebby

I had this problem too, and I was able to successfully run this code by going into the xml_to_csv.py code and adding "+ ".jpg" " before the comma on line 13, running the xml_to_csv.py again, and then running tf_record.

Phantiminium avatar Jul 13 '18 18:07 Phantiminium

When converting to tf_record, I will deal with the following problem: untitled

Check your path, check whether you have the image 0000000.jpg is inside images.

nadzranasinghe avatar Jul 30 '19 09:07 nadzranasinghe

I had this problem too, just add --imageDir={path to image dir} Problem will be solved..

adityasinghal2 avatar Aug 05 '19 17:08 adityasinghal2

@adityasinghal2 you mean for example I would have something like this? python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record --imageDir={C:\Users\billz\Desktop\object_detection\images}

skiteskopes avatar Aug 05 '19 21:08 skiteskopes

@skiteskopes just remove that curly braces in --imageDir i .e python generate_tfrecord.py --csv_input=data/train_labels.csv --output_path=train.record --imageDir=C:\Users\billz\Desktop\object_detection\images

adityasinghal2 avatar Aug 06 '19 03:08 adityasinghal2

i have the same issue even after setting the imageDir={image path/train} @adityasinghal2 @skiteskopes were you able to solve it?

awaisumar1 avatar Feb 17 '20 13:02 awaisumar1