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

tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: #10674

Closed
3 tasks done
nht-1999 opened this issue Jun 17, 2022 · 5 comments
Closed
3 tasks done
Assignees
Labels
models:research models that come under research directory type:bug Bug in the code

Comments

@nht-1999
Copy link

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am using the latest TensorFlow Model Garden release and TensorFlow 2.
  • I am reporting the issue to the correct repository. (Model Garden official or research directory)
  • I checked to make sure that this issue has not already been filed.

1. The entire URL of the file you are using

https://github.com/tensorflow/models/tree/master/research/object_detection/model_main_tf2.py

2. Describe the bug

I train a model with a custom dataset with TF2 object detection API tutorial.
When I running python model_main_tf2.py --model_dir= D:\Code\GETS\Sample\models\demo\SSD_passport --pipeline_config_path= D:\Code\GETS\Sample\models\demo\SSD_passport\pipeline.config
I have this bug report: tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open:: The system cannot find the path specified.; No such process

image

My dataset uses Pascal VOC format and all image is .jpg type.
You can see model_main_tf2.py and gene_TFRecord.py and my dataset at: https://github.com/nht-1999/Object_detection_API
I don't know which part causes this bug(Dataset or code)?
I see this bug can happen when using generate_tfrecord.py.
Could someone help me fix this bug?

6. System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Win 10 pro
  • Mobile device name if the issue happens on a mobile device:
  • TensorFlow installed from (source or binary): pip install tensorflow
  • TensorFlow version (use command below): TensorFlow v2.9.1
  • Python version: Python 3.9.12
  • Bazel version (if compiling from source):
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version:
  • GPU model and memory:
@nht-1999 nht-1999 added models:research models that come under research directory type:bug Bug in the code labels Jun 17, 2022
@chunduriv
Copy link
Contributor

@nht-1999,

Could you try to specify the absolute path in pipeline.config and let us know?

Please check #6595, #2215 may help you.Thank you.

@chunduriv chunduriv self-assigned this Jun 17, 2022
@chunduriv chunduriv added the stat:awaiting response Waiting on input from the contributor label Jun 17, 2022
@nht-1999
Copy link
Author

Thanks for your response. You can see the defined path in my pipeline.config and folder tree.
pipeline.config:
pipeline config
folder tree:
folder tree

I clone this GitHub repository: git clone https://github.com/tensorflow/models.git
and create a demo folder for training custom datasets.

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Waiting on input from the contributor label Jun 20, 2022
@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@aravinthk00
Copy link

I am also struggle in this same error . I am working on https://github.com/DanielLin1986/Function-level-Vulnerability-Detection ,try to trainig the neural network model ,I am using tensorflow 1.15 because this version only comfortable in this project.

My Error Log :

Traceback (most recent call last):
File "main.py", line 34, in
helper.exec()
File "C:\Users\30863\Downloads\master\src\helper.py", line 251, in exec
model_func = elmo_network.build_elmo_network(GPU_flag)
File "C:\Users\30863\Downloads\master\src\models\elmo_network.py", line 43, in build_elmo_network
elmo_embedding = Lambda(self.make_elmo_embedding, output_shape=(None, 1024))(elmo_input)
File "C:\Users\30863\Anaconda3\envs\myenv\lib\site-packages\keras\engine\base_layer.py", line 457, in call
output = self.call(inputs, **kwargs)
File "C:\Users\30863\Anaconda3\envs\myenv\lib\site-packages\keras\layers\core.py", line 687, in call
return self.function(inputs, **arguments)
File "C:\Users\30863\Downloads\master\src\models\elmo_network.py", line 35, in make_elmo_embedding
elmo_model = hub.Module("https://tfhub.dev/google/elmo/2", trainable=True)
File "C:\Users\30863\Anaconda3\envs\myenv\lib\site-packages\tensorflow_hub\module.py", line 157, in init
self._spec = as_module_spec(spec)
File "C:\Users\30863\Anaconda3\envs\myenv\lib\site-packages\tensorflow_hub\module.py", line 30, in as_module_spec
return load_module_spec(spec)
File "C:\Users\30863\Anaconda3\envs\myenv\lib\site-packages\tensorflow_hub\module.py", line 65, in load_module_spec
return registry.loader(path)
File "C:\Users\30863\Anaconda3\envs\myenv\lib\site-packages\tensorflow_hub\registry.py", line 51, in call
return impl(*args, **kwargs)
File "C:\Users\30863\Anaconda3\envs\myenv\lib\site-packages\tensorflow_hub\native_module.py", line 139, in call
module_def_proto = self._get_module_def_proto(path)
File "C:\Users\30863\Anaconda3\envs\myenv\lib\site-packages\tensorflow_hub\native_module.py", line 130, in _get_module_def_proto
module_def_proto.ParseFromString(f.read())
File "C:\Users\30863\Anaconda3\envs\myenv\lib\site-packages\tensorflow_core\python\lib\io\file_io.py", line 122, in read
self._preread_check()
File "C:\Users\30863\Anaconda3\envs\myenv\lib\site-packages\tensorflow_core\python\lib\io\file_io.py", line 84, in _preread_check
compat.as_bytes(self.__name), 1024 * 512)
tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: C:\Users\30863\AppData\Local\Temp\tfhub_modules\9bb74bc86f9caffc8c47dd7b33ec4bb354d9602d\tfhub_module.pb : The system cannot find the file specified.
; No such file or directory

could you help me anyone ... advance thanks ...

@ingenious-hans
Copy link

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
models:research models that come under research directory type:bug Bug in the code
Projects
None yet
Development

No branches or pull requests

4 participants