bourdakos1 / Custom-Object-Detection

Custom Object Detection with TensorFlow
https://medium.freecodecamp.org/tracking-the-millenium-falcon-with-tensorflow-c8c86419225e
MIT License
347 stars 181 forks source link

tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: images\armas1721 : The system cannot find the file specified. ; No such file or directory #22

Closed BanuSelinTosun closed 6 years ago

BanuSelinTosun commented 6 years ago

Hi Nick,

I was able to run the exact repo with your help. Thank you very much for your helps. So, now, I need to apply the same exact steps to my images and xml files. I put my images to images folder. They are all ".jpg" though size is changing from 5-8 KB to 1400 KBs. I put the xmls in the annotations/xmls folder. I updated the trainval.txt, test_images folder, label_map.pbtxt. Everything is as it supposed to be.

However, I keep getting this error when I run the create_tf_record.py ("python object_detection/create_tf_record.py").

''' tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: images\armas1721 : The system cannot find the file specified. ; No such file or directory'''

The file exists, the folder exists. I am not sure why this error is popping up. I google'd around it but no solutions come up in the stackoverflow. I see people are posting the same error code, or similar error codes; have not seen a solution yet.

Does anyone know how to overcome this problem?

Thank you, Selin

BanuSelinTosun commented 6 years ago

Make sure your xml files are also referring to the files with the right extension. :)