【发布时间】:2022-01-14 03:21:55
【问题描述】:
python mo_tf.py
--saved_model_dir C:\DATASETS\mask50000\exports\saved_model
--output_dir C:\DATASETS\mask50000
--reverse_input_channels
--tensorflow_custom_operations_config extensions\front\tf\mask_rcnn_support_api_v2.0.json
--tensorflow_object_detection_api_pipeline_config C:\DATASETS\mask50000\exports\pipeline.config
--log_level=DEBUG
我一直在尝试使用上面的脚本转换模型,但每次我得到错误:
“异常:运行替换器“REPLACEMENT_ID (
我已经使用 exporter_main_v2.py 导出了图表。如果需要更多信息,请告诉我。
编辑: 我能够通过更改文件 mask_rcnn_support_api_v2.4.json 来转换模型。
第一个变化: “自定义属性”:{ "operation_to_add": "提案", “clip_before_nms”:假, “clip_after_nms”:真 } 第二个变化: “起点”:[ "StatefulPartitionedCall/concat/concat", "StatefulPartitionedCall/concat_1/concat", "StatefulPartitionedCall/GridAnchorGenerator/Identity", "StatefulPartitionedCall/Cast", "StatefulPartitionedCall/Cast_1", “StatefulPartitionedCall/形状” ]
解决了这个问题。
【问题讨论】:
标签: tensorflow tensorflow2.0 faster-rcnn openvino