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

raise ValueError('You must supply the path to save to with --output_file') ValueError: You must supply the path to save to with --output_file #591

Open
r2ba7 opened this issue May 18, 2022 · 1 comment

Comments

@r2ba7
Copy link

r2ba7 commented May 18, 2022

I'm training tensorflow 1 object detection using mobilenet
when I use this command: python export_inference_graph.py --input_type image_tensor --pipeline_config_path training\mobilenet.config --trained_checkpoint_prefix training\model.ckpt-100000 --output_directory trained-inference-graphs
Traceback (most recent call last): File "export_inference_graph.py", line 156, in <module> tf.app.run() File "C:\Users\abdel\.conda\envs\tf1\lib\site-packages\tensorflow\python\platform\app.py", line 40, in run _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "C:\Users\abdel\.conda\envs\tf1\lib\site-packages\absl\app.py", line 312, in run _run_main(main, args) File "C:\Users\abdel\.conda\envs\tf1\lib\site-packages\absl\app.py", line 258, in _run_main sys.exit(main(argv)) File "export_inference_graph.py", line 118, in main raise ValueError('You must supply the path to save to with --output_file') ValueError: You must supply the path to save to with --output_file

when I use this: python export_inference_graph.py --input_type image_tensor --pipeline_config_path training\pipeline.config --trained_checkpoint_prefix training\model.ckpt-100000 --output_file training
Traceback (most recent call last): File "export_inference_graph.py", line 156, in <module> tf.app.run() File "C:\Users\abdel\.conda\envs\tf1\lib\site-packages\tensorflow\python\platform\app.py", line 40, in run _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "C:\Users\abdel\.conda\envs\tf1\lib\site-packages\absl\app.py", line 312, in run _run_main(main, args) File "C:\Users\abdel\.conda\envs\tf1\lib\site-packages\absl\app.py", line 258, in _run_main sys.exit(main(argv)) File "export_inference_graph.py", line 125, in main FLAGS.dataset_dir) File "H:\Jupyter_Notebooks\TF1\models\research\slim\datasets\dataset_factory.py", line 57, in get_dataset reader) File "H:\Jupyter_Notebooks\TF1\models\research\slim\datasets\imagenet.py", line 188, in get_split labels_to_names = create_readable_names_for_imagenet_labels() File "H:\Jupyter_Notebooks\TF1\models\research\slim\datasets\imagenet.py", line 94, in create_readable_names_for_imagenet_labels filename, _ = urllib.request.urlretrieve(synset_url) File "C:\Users\abdel\.conda\envs\tf1\lib\urllib\request.py", line 247, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: File "C:\Users\abdel\.conda\envs\tf1\lib\urllib\request.py", line 222, in urlopen return opener.open(url, data, timeout) File "C:\Users\abdel\.conda\envs\tf1\lib\urllib\request.py", line 531, in open response = meth(req, response) File "C:\Users\abdel\.conda\envs\tf1\lib\urllib\request.py", line 641, in http_response 'http', request, response, code, msg, hdrs) File "C:\Users\abdel\.conda\envs\tf1\lib\urllib\request.py", line 563, in error result = self._call_chain(*args) File "C:\Users\abdel\.conda\envs\tf1\lib\urllib\request.py", line 503, in _call_chain result = func(*args) File "C:\Users\abdel\.conda\envs\tf1\lib\urllib\request.py", line 755, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "C:\Users\abdel\.conda\envs\tf1\lib\urllib\request.py", line 531, in open response = meth(req, response) File "C:\Users\abdel\.conda\envs\tf1\lib\urllib\request.py", line 641, in http_response 'http', request, response, code, msg, hdrs) File "C:\Users\abdel\.conda\envs\tf1\lib\urllib\request.py", line 569, in error return self._call_chain(*args) File "C:\Users\abdel\.conda\envs\tf1\lib\urllib\request.py", line 503, in _call_chain result = func(*args) File "C:\Users\abdel\.conda\envs\tf1\lib\urllib\request.py", line 649, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

@Petros626
Copy link

google the messages is better than to post here huge errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants