纠正 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 中模型的输入图。
- tensorboard --logdir=
- 将 输出 URL 复制并 粘贴 到浏览器中。
- 检查 JSON 文件中的所有节点名称是否与模型的节点名称匹配。这些节点的名称在 JSON 文件中的“start_points” 和 “end_points” 的 “id: ObjectDetectionAPIProposalReplacement” 下注。
- 修改 JSON 文件中的节点名称。
- 使用 以下命令将模型转换为 IR:
mo --input_model= --transformations_config= --tensorflow_object_detection_api_pipeline_config= --input_shape==detection_scores,detection_boxes,num_detections --input=image_tensor --reverse_input_channels