受 TensorFlow 2.0 对象检测 API 模型支持的OpenVINO版本。
- 转换自定义 TensorFlow 2 模型 mask_rcnn_inception_resnet_v2_1024x1024_coco17 要 IR 使用模型优化器命令:
注意 上面的链接可能无法正确下载文件。复制(右键单击和复制链接地址)并直接将该链接粘贴到浏览器中以打开文件可能很有必要。 "Exception: Exception occurred during running replacer "REPLACEMENT_ID ()": The function 'update_custom_layer_attributes' must be implemented in the sub-class."
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.4.json
--tensorflow_object_detection_api_pipeline_config C:\DATASETS\mask50000\exports\pipeline.config
--log_level=DEBUG
- 收到错误:
"Exception: Exception occurred during running replacer "REPLACEMENT_ID ()": The function 'update_custom_layer_attributes' must be implemented in the sub-class."
对 TensorFlow 2.0 对象检测 API 模型的支持仅从 2021.3 OpenVINO起才得以完全启用。
升级 到 OpenVINO 2021.3 或更高版本。