ので、属性のエラーがスローされます。実行export_inference_graph.pyは、クラウド上の訓練の後、私は次のリンク使用して推論グラフをエクスポートしようとした、
https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/exporting_models.md
私が使用したコードをした:
python export_inference_graph.py \--input_type image_tensor \--pipeline_config_path samples/configs/ssd_mobilenet_v1_pets \--trained_checkpoint_prefix training\model.ckpt-29809 \--output_directory crop_graph1
それはエラーがスローされます。
C:\Users\kannan\Desktop\Deep Learning Projects\GCP\models\research\object_detection>python export_inference_graph.py --input_type image_tensor --pipeline_config_path samples/configs/ssd_mobilenet_v1_pets --trained_checkpoint_prefix training\model.ckpt-29809 --output_directory crop_graph1 Traceback (most recent call last):
File "export_inference_graph.py", line 119, in tf.app.run() File "C:\Users\kannan\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\platform\app.py", line 41, in run flags_passthrough = f._parse_flags(args=args) File "C:\Users\kannan\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\platform\flags.py", line 45, in _parse_flags self._assert_all_required() File "C:\Users\kannan\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\platform\flags.py", line 78, in _assert_all_required self._assert_required(flag_name) File "C:\Users\kannan\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\platform\flags.py", line 74, in _assert_required raise AttributeError('Flag --%s must be specified.' % flag_name) AttributeError: Flag --output_directory must be specified.
どのように任意のアイデアこれを回避する?
せずに1行にする必要がありますが、それはまだ –
は、あなたが上記のように「\」なしでコマンドを実行してみることができ、同じエラーがスローされますか? – johnII
それはうまくいった。以前は、ローカルでトレーニングをしているうちに、 "\"で作業しました。それはなぜですか? –