0

ので、属性のエラーがスローされます。実行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

私はPythonが治療されていると問題がこのtraining\model.ckpt-29809

"training\model.ckpt-29809" 

のような二重引用符を持っている必要があり

\--trained_checkpoint_prefix training\model.ckpt-29809 \--output_directory crop_graph1 

線より下から生ずると思う余分な「 - 」CKPT間と29809 か連続コマンドのためにバックスラッシュを削除することもできます。

コマンドは、私はあなたが提案し何をしようとしました「\」

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 
+0

せずに1行にする必要がありますが、それはまだ –

+0

は、あなたが上記のように「\」なしでコマンドを実行してみることができ、同じエラーがスローされますか? – johnII

+0

それはうまくいった。以前は、ローカルでトレーニングをしているうちに、 "\"で作業しました。それはなぜですか? –

関連する問題