title: Tensorflow Object Detection Error tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: \ :
body: <p>I'm currently trying to train a model from the tensorflow object detection zoo. When running the script to train it i keep encountering the following.</p>
  <pre><code>(tensorflow) c:\&gt;python &quot;Machine Learning&quot;\Tensorflow\models\research\object_detection\model_main_tf2.py --model_dir=University\Year4\HonoursProject\Tensorflowfiles\Models\ObjectDetector --pipeline_config_path=University\Year4\HonoursProject\Tensorflowfiles\Models\ObjectDetector\pipeline.config --num_train_steps=2000
  C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\numpy\_distributor_init.py:30: UserWarning: loaded more than 1 DLL from .libs:
  C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\numpy\.libs\libopenblas.WCDJNK7YVMPZQ2ME2ZZHJJRJ3JIKNDB7.gfortran-win_amd64.dll
  C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\numpy\.libs\libopenblas.XWYDX2IKJW2NMTWSFYNGFUWKQU3LYTCZ.gfortran-win_amd64.dll
    warnings.warn(&quot;loaded more than 1 DLL from .libs:&quot;
  2022-01-03 07:32:29.811392: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
  To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
  2022-01-03 07:32:30.307272: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1525] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 4626 MB memory:  -&gt; device: 0, name: NVIDIA GeForce GTX 1060 6GB, pci bus id: 0000:09:00.0, compute capability: 6.1
  INFO:tensorflow:Using MirroredStrategy with devices ('/job:localhost/replica:0/task:0/device:GPU:0',)
  I0103 07:32:30.312761  4032 mirrored_strategy.py:376] Using MirroredStrategy with devices ('/job:localhost/replica:0/task:0/device:GPU:0',)
  INFO:tensorflow:Maybe overwriting train_steps: 2000
  I0103 07:32:30.321256  4032 config_util.py:552] Maybe overwriting train_steps: 2000
  INFO:tensorflow:Maybe overwriting use_bfloat16: False
  I0103 07:32:30.321759  4032 config_util.py:552] Maybe overwriting use_bfloat16: False
  WARNING:tensorflow:From C:\Machine Learning\Tensorflow\models\research\object_detection\model_lib_v2.py:563: StrategyBase.experimental_distribute_datasets_from_function (from tensorflow.python.distribute.distribute_lib) is deprecated and will be removed in a future version.
  Instructions for updating:
  rename to distribute_datasets_from_function
  W0103 07:32:30.512756  4032 deprecation.py:341] From C:\Machine Learning\Tensorflow\models\research\object_detection\model_lib_v2.py:563: StrategyBase.experimental_distribute_datasets_from_function (from tensorflow.python.distribute.distribute_lib) is deprecated and will be removed in a future version.
  Instructions for updating:
  rename to distribute_datasets_from_function
  INFO:tensorflow:Reading unweighted datasets: ['U', 'n', 'i', 'v', 'e', 'r', 's', 'i', 't', 'y', '\\', 'Y', 'e', 'a', 'r', '4', '\\', 'H', 'o', 'n', 'o', 'u', 'r', 's', 'P', 'r', 'o', 'j', 'e', 'c', 't', '\\', 'T', 'e', 'n', 's', 'o', 'r', 'f', 'l', 'o', 'w', 'f', 'i', 'l', 'e', 's', '\\', 'T', 'r', 'a', 'i', 'n', 'i', 'n', 'g', 'a', 'n', 'd', 'T', 'e', 's', 't', 'S', 'e', 't', 's', '\\', 't', 'r', 'a', 'i', 'n', '.', 'r', 'e', 'c', 'o', 'r', 'd']
  I0103 07:32:30.524756  4032 dataset_builder.py:163] Reading unweighted datasets: ['U', 'n', 'i', 'v', 'e', 'r', 's', 'i', 't', 'y', '\\', 'Y', 'e', 'a', 'r', '4', '\\', 'H', 'o', 'n', 'o', 'u', 'r', 's', 'P', 'r', 'o', 'j', 'e', 'c', 't', '\\', 'T', 'e', 'n', 's', 'o', 'r', 'f', 'l', 'o', 'w', 'f', 'i', 'l', 'e', 's', '\\', 'T', 'r', 'a', 'i', 'n', 'i', 'n', 'g', 'a', 'n', 'd', 'T', 'e', 's', 't', 'S', 'e', 't', 's', '\\', 't', 'r', 'a', 'i', 'n', '.', 'r', 'e', 'c', 'o', 'r', 'd']
  INFO:tensorflow:Reading record datasets for input file: ['U', 'n', 'i', 'v', 'e', 'r', 's', 'i', 't', 'y', '\\', 'Y', 'e', 'a', 'r', '4', '\\', 'H', 'o', 'n', 'o', 'u', 'r', 's', 'P', 'r', 'o', 'j', 'e', 'c', 't', '\\', 'T', 'e', 'n', 's', 'o', 'r', 'f', 'l', 'o', 'w', 'f', 'i', 'l', 'e', 's', '\\', 'T', 'r', 'a', 'i', 'n', 'i', 'n', 'g', 'a', 'n', 'd', 'T', 'e', 's', 't', 'S', 'e', 't', 's', '\\', 't', 'r', 'a', 'i', 'n', '.', 'r', 'e', 'c', 'o', 'r', 'd']
  I0103 07:32:30.527758  4032 dataset_builder.py:80] Reading record datasets for input file: ['U', 'n', 'i', 'v', 'e', 'r', 's', 'i', 't', 'y', '\\', 'Y', 'e', 'a', 'r', '4', '\\', 'H', 'o', 'n', 'o', 'u', 'r', 's', 'P', 'r', 'o', 'j', 'e', 'c', 't', '\\', 'T', 'e', 'n', 's', 'o', 'r', 'f', 'l', 'o', 'w', 'f', 'i', 'l', 'e', 's', '\\', 'T', 'r', 'a', 'i', 'n', 'i', 'n', 'g', 'a', 'n', 'd', 'T', 'e', 's', 't', 'S', 'e', 't', 's', '\\', 't', 'r', 'a', 'i', 'n', '.', 'r', 'e', 'c', 'o', 'r', 'd']
  INFO:tensorflow:Number of filenames to read: 6
  I0103 07:32:30.528258  4032 dataset_builder.py:81] Number of filenames to read: 6
  WARNING:tensorflow:num_readers has been reduced to 6 to match input file shards.
  W0103 07:32:30.529259  4032 dataset_builder.py:87] num_readers has been reduced to 6 to match input file shards.
  WARNING:tensorflow:From C:\Machine Learning\Tensorflow\models\research\object_detection\builders\dataset_builder.py:101: parallel_interleave (from tensorflow.python.data.experimental.ops.interleave_ops) is deprecated and will be removed in a future version.
  Instructions for updating:
  Use `tf.data.Dataset.interleave(map_func, cycle_length, block_length, num_parallel_calls=tf.data.AUTOTUNE)` instead. If sloppy execution is desired, use `tf.data.Options.deterministic`.
  W0103 07:32:30.533258  4032 deprecation.py:341] From C:\Machine Learning\Tensorflow\models\research\object_detection\builders\dataset_builder.py:101: parallel_interleave (from tensorflow.python.data.experimental.ops.interleave_ops) is deprecated and will be removed in a future version.
  Instructions for updating:
  Use `tf.data.Dataset.interleave(map_func, cycle_length, block_length, num_parallel_calls=tf.data.AUTOTUNE)` instead. If sloppy execution is desired, use `tf.data.Options.deterministic`.
  WARNING:tensorflow:From C:\Machine Learning\Tensorflow\models\research\object_detection\builders\dataset_builder.py:236: DatasetV1.map_with_legacy_function (from tensorflow.python.data.ops.dataset_ops) is deprecated and will be removed in a future version.
  Instructions for updating:
  Use `tf.data.Dataset.map()
  W0103 07:32:30.559256  4032 deprecation.py:341] From C:\Machine Learning\Tensorflow\models\research\object_detection\builders\dataset_builder.py:236: DatasetV1.map_with_legacy_function (from tensorflow.python.data.ops.dataset_ops) is deprecated and will be removed in a future version.
  Instructions for updating:
  Use `tf.data.Dataset.map()
  WARNING:tensorflow:From C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\dispatch.py:1096: sparse_to_dense (from tensorflow.python.ops.sparse_ops) is deprecated and will be removed in a future version.
  Instructions for updating:
  Create a `tf.sparse.SparseTensor` and use `tf.sparse.to_dense` instead.
  W0103 07:32:38.622757  4032 deprecation.py:341] From C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\dispatch.py:1096: sparse_to_dense (from tensorflow.python.ops.sparse_ops) is deprecated and will be removed in a future version.
  Instructions for updating:
  Create a `tf.sparse.SparseTensor` and use `tf.sparse.to_dense` instead.
  WARNING:tensorflow:From C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\dispatch.py:1096: sample_distorted_bounding_box (from tensorflow.python.ops.image_ops_impl) is deprecated and will be removed in a future version.
  Instructions for updating:
  `seed2` arg is deprecated.Use sample_distorted_bounding_box_v2 instead.
  W0103 07:32:42.251763  4032 deprecation.py:341] From C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\dispatch.py:1096: sample_distorted_bounding_box (from tensorflow.python.ops.image_ops_impl) is deprecated and will be removed in a future version.
  Instructions for updating:
  `seed2` arg is deprecated.Use sample_distorted_bounding_box_v2 instead.
  WARNING:tensorflow:From C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\autograph\impl\api.py:465: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
  Instructions for updating:
  Use `tf.cast` instead.
  W0103 07:32:44.158189  4032 deprecation.py:341] From C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\autograph\impl\api.py:465: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
  Instructions for updating:
  Use `tf.cast` instead.
  Traceback (most recent call last):
    File &quot;c:\Machine Learning\Tensorflow\models\research\object_detection\model_main_tf2.py&quot;, line 115, in &lt;module&gt;
      tf.compat.v1.app.run()
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\platform\app.py&quot;, line 40, in run
      _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\absl\app.py&quot;, line 303, in run
      _run_main(main, args)
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\absl\app.py&quot;, line 251, in _run_main
      sys.exit(main(argv))
    File &quot;c:\Machine Learning\Tensorflow\models\research\object_detection\model_main_tf2.py&quot;, line 106, in main
      model_lib_v2.train_loop(
    File &quot;C:\Machine Learning\Tensorflow\models\research\object_detection\model_lib_v2.py&quot;, line 605, in train_loop
      load_fine_tune_checkpoint(
    File &quot;C:\Machine Learning\Tensorflow\models\research\object_detection\model_lib_v2.py&quot;, line 400, in load_fine_tune_checkpoint
      _ensure_model_is_built(model, input_dataset, unpad_groundtruth_tensors)
    File &quot;C:\Machine Learning\Tensorflow\models\research\object_detection\model_lib_v2.py&quot;, line 160, in _ensure_model_is_built
      features, labels = iter(input_dataset).next()
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\distribute\input_lib.py&quot;, line 679, in next
      return self.__next__()
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\distribute\input_lib.py&quot;, line 683, in __next__
      return self.get_next()
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\distribute\input_lib.py&quot;, line 740, in get_next
      return self._get_next_no_partial_batch_handling(name)
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\distribute\input_lib.py&quot;, line 772, in _get_next_no_partial_batch_handling
      replicas.extend(self._iterators[i].get_next_as_list(new_name))
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\distribute\input_lib.py&quot;, line 2021, in get_next_as_list
      return self._format_data_list_with_options(self._iterator.get_next())
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\multi_device_iterator_ops.py&quot;, line 584, in get_next
      result.append(self._device_iterators[i].get_next())
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\iterator_ops.py&quot;, line 853, in get_next
      return self._next_internal()
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\data\ops\iterator_ops.py&quot;, line 783, in _next_internal
      ret = gen_dataset_ops.iterator_get_next(
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\ops\gen_dataset_ops.py&quot;, line 2844, in iterator_get_next
      _ops.raise_from_not_ok_status(e, name)
    File &quot;C:\Users\Aaron\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\ops.py&quot;, line 7107, in raise_from_not_ok_status
      raise core._status_to_exception(e) from None  # pylint: disable=protected-access
  tensorflow.python.framework.errors_impl.NotFoundError: NewRandomAccessFile failed to Create/Open: \ : The system cannot find the path specified.
  ; No such process
           [[{{node MultiDeviceIteratorGetNextFromShard}}]]
           [[RemoteCall]] [Op:IteratorGetNext]
  </code></pre>
  <p>Just wondering what this means because i see that its trying to access a file with no proper directory attached to it.
  I have tried looking at all the scripts and lines that are mentioned in the stack trace but unable to identify where the error is coming from.</p>