インテル® NCS 2 の スタートガイド に従って、OpenVINO™・ツールキットをインストールし、インテル® NCS 2 を設定します。
メモ | スタートガイドとこの記事は、元のインテル® Movidius™ニューラル・コンピュート・スティックを使用しているユーザーにも適用されます。 |
mo_tf.py スクリプトは、~/intel/openvino/deployment_tools/model_optimizer・ディレクトリーにあります。インテル® NCS 2 での推論のためにモデルを中間表現 (IR) に変換する際には、以下のパラメーターを指定する必要があります。
--input_model <path_to_frozen.pb>
--tensorflow_use_custom_operations_config <path_to_subgraph_replacement_configuration_file.json>
--tensorflow_object_detection_api_pipeline_config <path_to_pipeline.config>
--reverse_input_channels
--data_type FP16
モデル・オプティマイザー・コマンドの例:
python3 ~/intel/openvino/deployment_tools/model_optimizer/mo_tf.py --input_model frozen_model.pb --tensorflow_use_custom_operations_config ~/intel/openvino/deployment_tools/model_optimizer/extensions/front/tf/ssd_v2_support.json --tensorflow_object_detection_api_pipeline_config pipeline.config --reverse_input_channels --data_type FP16
モデル・オプティマイザーに関する追加情報は、OpenVINO™・ ツールキットのドキュメントに記載されています。