【问题标题】:Error when evaluating pretrained model in Tensorflow object-detection (tensorflow.python.framework.errors_impl.NotFoundError:)在 Tensorflow 对象检测中评估预训练模型时出错 (tensorflow.python.framework.errors_impl.NotFoundError:)
【发布时间】:2019-08-02 09:05:53
【问题描述】:

我正在尝试根据我的视频数据评估预训练的 tensorflow 对象部分模型。

根据我之前解决的问题,我在这个脚本上还有一个错误

python /Users/user_name/PycharmProjects/ObjDectCount/Tensorflow/models/research/object_detection/legacy/eval.py --logtostderr --checkpoint_dir=test_ckpt --eval_dir=/Users/user_name/Documents/1426-1200reduced.avi --pipelineline_config_path=/samples/configs/ssd_inception_v2_coco.config

导致此错误:

Traceback (most recent call last):
  File "/Users/user_name/PycharmProjects/ObjDectCount/Tensorflow/models/research/object_detection/legacy/eval.py", line 142, in <module>
    tf.app.run()
  File "/Users/user_name/.conda/envs/ObjDectCount/lib/python3.7/site-packages/tensorflow/python/platform/app.py", line 125, in run
    _sys.exit(main(argv))
  File "/Users/user_name/.conda/envs/ObjDectCount/lib/python3.7/site-packages/tensorflow/python/util/deprecation.py", line 324, in new_func
    return func(*args, **kwargs)
  File "/Users/user_name/PycharmProjects/ObjDectCount/Tensorflow/models/research/object_detection/legacy/eval.py", line 103, in main
    tf.gfile.Copy(config, os.path.join(FLAGS.eval_dir, name), overwrite=True)
  File "/Users/user_name/.conda/envs/ObjDectCount/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py", line 474, in copy
    copy_v2(oldpath, newpath, overwrite)
  File "/Users/user_name/.conda/envs/ObjDectCount/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py", line 492, in copy_v2
    compat.as_bytes(src), compat.as_bytes(dst), overwrite, status)
  File "/Users/user_name/.conda/envs/ObjDectCount/lib/python3.7/site-packages/tensorflow/python/framework/errors_impl.py", line 528, in __exit__
    c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: ; No such file or directory

【问题讨论】:

    标签: python python-3.x tensorflow runtime-error object-detection-api


    【解决方案1】:

    这是一个错字

    pipelineline_config_path=/samples/configs/ssd_inception_v2_coco.config
    

    应该是

    pipeline_config_path=/samples/configs/ssd_inception_v2_coco.config
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-26
      • 1970-01-01
      • 2019-01-22
      • 1970-01-01
      • 2018-02-19
      • 2020-06-03
      • 1970-01-01
      • 2019-10-05
      相关资源
      最近更新 更多