在Tensorflow对象检测中评估预训练模型时出错(tensorflow.python.framework.errors_impl.NotFoundError :)

时间:2019-08-02 09:05:53

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

我正在尝试根据我的视频数据评估预训练的张量流对象截面模型。

根据我先前解决的问题,我对该脚本有进一步的错误

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

1 个答案:

答案 0 :(得分:0)

这是一个错字

pipelineline_config_path=/samples/configs/ssd_inception_v2_coco.config

应该是

pipeline_config_path=/samples/configs/ssd_inception_v2_coco.config