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

exporting inference graph value error #7646

Open
daisoto opened this issue Oct 10, 2019 · 1 comment
Open

exporting inference graph value error #7646

daisoto opened this issue Oct 10, 2019 · 1 comment

Comments

@daisoto
Copy link

daisoto commented Oct 10, 2019

  • What is the top-level directory of the model you are using: research/object_detection
  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
  • TensorFlow installed from (source or binary): google colab
  • TensorFlow version (use command below): 1.15.0-rc3
  • Bazel version (if compiling from source):
  • CUDA/cuDNN version:
  • GPU model and memory:google colab
  • Exact command to reproduce: !python export_inference_graph.py --input_type=image_tensor --pipeline_config_path=training/ssd_mobilenet_v2_coco.config --trained_checkpoint_prefix=training/model.ckpt-1001 --output_directory=output

I am facing the issue with exporting graph using tensorflow object detection API running the command above.

Traceback (most recent call last):
  File "export_inference_graph.py", line 162, in <module>
    tf.app.run()
  File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 299, in run
    _run_main(main, args)
  File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 250, in _run_main
    sys.exit(main(argv))
  File "export_inference_graph.py", line 158, in main
    write_inference_graph=FLAGS.write_inference_graph)
  File "/content/drive/My Drive/OD/models-master/research/object_detection/exporter.py", line 489, in export_inference_graph
    write_inference_graph=write_inference_graph)
  File "/content/drive/My Drive/OD/models-master/research/object_detection/exporter.py", line 418, in _export_inference_graph
    trained_checkpoint_prefix=checkpoint_to_use)
  File "/content/drive/My Drive/OD/models-master/research/object_detection/exporter.py", line 327, in write_graph_and_checkpoint
    saver.restore(sess, trained_checkpoint_prefix)
  File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/training/saver.py", line 1282, in restore
    checkpoint_prefix)
ValueError: The passed save_path is not a valid checkpoint: training/model.ckpt-1001

I am having this issue although having model.ckpt-1001 in the folder.
image

@gowthamkpr gowthamkpr added type:support models:research models that come under research directory labels Oct 15, 2019
@chomar83
Copy link

Mayby one more 0 in checkpoint name would help:)

@jaeyounkim jaeyounkim added models:research:odapi ODAPI and removed models:research models that come under research directory labels Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants