文章 ID: 000059636 内容类型: 错误讯息 上次审核日期: 2022 年 09 月 07 日

错误:“无法匹配节点......”将定制更快的 R-CNN TensorFlow* 模型转换为中间表示 (IR) 时

BUILT IN - ARTICLE INTRO SECOND COMPONENT
总结

纠正 JavaScript 对象表示法 (JSON) 文件中关于模型节点名称的自定义替换说明的步骤

说明
  1. 成功地将定制的更快 R-CNN TensorFlow 模型转换为 IR。
  2. 通过修改以前的模型生成新的更快 R-CNN TensorFlow 模型。
  3. 将该新模型转换为 IR。
  4. 收到错误:
      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.
解决方法
  1. 转储 模型的输入图。
    mo --input_model= --tensorboard_logdir=
  2. 可视 化 TensorBoard 中模型的输入图。
    • tensorboard --logdir=
    • 输出 URL 复制并 粘贴 到浏览器中。
  3. 检查 JSON 文件中的所有节点名称是否与模型的节点名称匹配。这些节点的名称在 JSON 文件中的“start_points” 和 “end_points” 的 “id: ObjectDetectionAPIProposalReplacement” 下注。
  4. 修改 JSON 文件中的节点名称。
  5. 使用 以下命令将模型转换为 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

相关产品

本文适用于 2 产品

本页面上的内容是原始英文内容的人工翻译与计算机翻译的组合。我们提供此内容是为了您的便利并且仅供参考,未必完整或准确。如果本页面的英文版与翻译版之间存在任何冲突,应以英文版为准。 查看此页面的英语版本。