モデルのノード名に関する JavaScript オブジェクト表記 (JSON) ファイルのカスタム置換テキストを修正する手順
- カスタム高速 R-CNN TensorFlow モデルを IR に変換しました。
- 以前のモデルを変更することで、新しい高速 R-CNN TensorFlow モデルを生成しました。
- 新モデルをIRに改造。
- 受信エラー:
Failed to match nodes from custom replacement description with id 'ObjectDetectionAPIProposalReplacement'
It means model and custom replacement description are incompatible.
Try to correct custom replacement description according to documentation with respect to model node names.
- モデルの入力グラフをダンプします。
mo --input_model= --tensorboard_logdir= - 視覚化 テンソルボードのモデルの入力グラフ。
- tensorboard --logdir=
- 出力 URL をコピーしてブラウザーに貼り付けます。
- JSON ファイル内のすべてのノード名が、モデルのノード名と一致するかどうかを確認します。これらのノード名は、JSON ファイル内の「id: ObjectDetectionAPIProposalReplacement」の「start_points」および「end_points」の下に記載されています。
- JSON ファイル内のノード名を変更します。
- 次のコマンドでモデルを IR に変換します。
mo --input_model=< モデル。PB> --transformations_config= --tensorflow_object_detection_api_pipeline_config= --input_shape= --output=detection_scores,detection_boxes,-input=num_detections image_tensor --reverse_input_channels