EdjeElectronics / TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10

How to train a TensorFlow Object Detection Classifier for multiple object detection on Windows
Apache License 2.0
2.92k stars 1.3k forks source link

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 2 years ago

r2ba7 commented 2 years ago

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 commented 2 years ago

google the messages is better than to post here huge errors