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
object_detection:InvalidArgumentError: Failed to create a NewWriteableFile #2215
Comments
Any update? I am having the same problem. tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: ssd_mobilenet_v1_pets.config |
I am using Windows 10, Python 3.6, Tensorflow 1.3 and I am having the same problem. Is this an error when running on Windows? |
To solve this problem, I follow the instructions in the train.py and swap the order of 2 parameters: "pipeline_config_path" with "the train_dir" |
When I try this |
I'm using Windows 10, Python 3.6.4 and Tensorflow 1.5. I get this problem too. |
Did anyone solve it? |
Check all of your text based config/map files. |
@rootskj Both |
I solved the problem. |
Upon running as admin error changes to ::
Just trying to train a model and Stuck with these errors. while Object detection with normal models work as expected. |
I try below command to solve the problem in win10 |
HI guys. python generate_tfrecord.py --csv_input=C:\tensorflow1\models\research\object_detection\images\train_labels.csv --image_dir=C:\tensorflow1\models\research\object_detection\images\train --output_path=train.record This is my error message. so I was confused, but this problem can be solved that so easy.. finally, I can implement 'generate_tfrecord.py' thanks, good luck to everyone |
Just checked with the object detection team who maintains these research models. They do not support Windows, so I'm closing this issue. You can try following object detection instructions for running on google cloud. For those who want to try running it locally on Windows anyway and have these issues: I would suggest looking into how your various files & paths are encoded, and making sure it is all windows-compatible. |
I can operate on the windows10, tensorflow-gpu 1.10 version, cuda 9.0 & cudnn 7 basically, I refer to this video(https://youtu.be/Rgpfk6eYxJA) if you have a problem when you are running 'generate_tfrecord.py' file. 'xml_to_csv.py' was edited to rename the image file. just edit part of last line +".jpg" , if you have a .png or .jpeg. do to change +".png" , +".jpeg" |
I have the same problem, and I found my mistake, fyi~ wrong way---------------------- right way:--------------------------- |
when i run the eval.py ,got the wrong |
Is there a document that says which parts of Tensorflow are Windows compatible? |
Hi @caseymeiz, Tensorflow itself (https://github.com/tensorflow/tensorflow) is Windows compatible. Likewise the However, the research models in https://github.com/tensorflow/models/tree/master/research are maintained by researchers who may or may not choose to support Windows. The models themselves should still run on Windows, but many of these models also incorporate various data munging & formatting code that might not play nicely with Windows encodings, file permissions, and paths out of the box. |
windows 10, tensorflow-gpu-1.11, python3.6 "tensorflow.python.framework.errors_impl.InvalidArgumentError: NewRandomAccessFile failed to Create/Open: $C:\Users\13302\Documents\TOD\models\research\objectdetection\training\pets.config : The filename, directory name, or volume label syntax is incorrect. Have anybody fixed this? |
please help me!!!!! how can solve this problem? |
This problem is caused by wrong file extensions. If you add the file extensions in the test and train labels files (csv), it will work. EDIT: read the post from LEESHACK, it can save you a lot of time... |
Were you able to solve it. I am facing the same issue |
|
I'm using windows 10, python 3.7 & tensorflow r1.14. I get this problem WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.
WARNING:tensorflow:From C:\Users\Asus\Miniconda3\lib\site-packages\tensorflow\python\platform\app.py:125: main (from main) is deprecated and will be removed in a future version. does anyone know how to solve it? |
You need to move the label_map.pbtxt to the right location. Make sure it's in the training folder of your main directory |
I had the same issue ... I solved it .. actually I did small wrong before after labelling the image I change the name of the file after that I change file to CSV file and try to change to tfrecord file .. but got the same error ... while checking it i found a small change in annotation file .. becaz the filename different in image and csv i got the error .. after i change it.. now its working good |
Oh, It also works for me, thank u ! |
Hey, were you able to fix this? If so, please let me know how |
I met the same question, and i watched this video which is mentioned above by LEESHACK .YouTube Video. in this video i noticed that when he entered the code at cmd, transfer the parameter to python, he follow this rule, for example what i did: notice, this problem only happen in Windows cmd, won't happen in Linux. |
This works |
when I python create_pascal_tf_record.py to convert voc2007 into the TFRecord file format,Error as follow:
Traceback (most recent call last):
File "create_pascal_tf_record.py", line 182, in
tf.app.run()
File "C:\abc\Anaconda3\envs\python35\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "create_pascal_tf_record.py", line 156, in main
writer = tf.python_io.TFRecordWriter(FLAGS.output_path)
File "C:\abc\Anaconda3\envs\python35\lib\site-packages\tensorflow\python\lib\io\tf_record.py", line 106, in init
compat.as_bytes(path), compat.as_bytes(compression_type), status)
File "C:\abc\Anaconda3\envs\python35\lib\contextlib.py", line 66, in exit
next(self.gen)
File "C:\abc\Anaconda3\envs\python35\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Failed to create a NewWriteableFile: 'E:\data' : \udcce\u013c\udcfe\udcc3\udcfb\udca1\udca2\u013f\xbc\udcc3\udcfb\udcbb\udcf2\udcbe\udced\udcb1\udcea\udcd3\ufde8\udcb2\udcbb\udcd5\udcfd\u0237\udca1\udca3
and I run python train.py to train my data also have the error
Traceback (most recent call last):
File "train.py", line 198, in
tf.app.run()
File "C:\abc\Anaconda3\envs\python35\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "train.py", line 143, in main
model_config, train_config, input_config = get_configs_from_pipeline_file()
File "train.py", line 103, in get_configs_from_pipeline_file
text_format.Merge(f.read(), pipeline_config)
File "C:\abc\Anaconda3\envs\python35\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 118, in read
self._preread_check()
File "C:\abc\Anaconda3\envs\python35\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 78, in _preread_check
compat.as_bytes(self.__name), 1024 * 512, status)
File "C:\abc\Anaconda3\envs\python35\lib\contextlib.py", line 66, in exit
next(self.gen)
File "C:\abc\Anaconda3\envs\python35\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: NewRandomAccessFile failed to Create/Open: 'E:\TF-OD-Test\models-master\models-master\object_detection\models\ssd_mobilenet_v1_pets.config' : \udcce\u013c\udcfe\udcc3\udcfb\udca1\udca2\u013f\xbc\udcc3\udcfb\udcbb\udcf2\udcbe\udced\udcb1\udcea\udcd3\ufde8\udcb2\udcbb\udcd5\udcfd\u0237\udca1\udca3
I can't understand the error,pelese help me. thanks
The text was updated successfully, but these errors were encountered: