Phiên bản OpenVINO hỗ trợ cho các mô hình API phát hiện đối tượng TensorFlow 2.0.
- Chuyển đổi mô hình TensorFlow 2 tùy chỉnh mask_rcnn_inception_resnet_v2_1024x1024_coco17 để IR sử dụng lệnh Model Optimizer:
Lưu ý Liên kết trên có thể không tải xuống chính xác tệp. Bạn có thể cần sao chép (nhấp chuột phải và sao chép địa chỉ liên kết) và dán liên kết trực tiếp vào trình duyệt của bạn để mở tệp. "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
- Đã nhận được lỗi:
"Exception: Exception occurred during running replacer "REPLACEMENT_ID ()": The function 'update_custom_layer_attributes' must be implemented in the sub-class."
Hỗ trợ cho các mô hình API Phát hiện Đối tượng TensorFlow 2.0 chỉ được kích hoạt đầy đủ bắt đầu từ OpenVINO 2021.3.
Nâng cấp lên OpenVINO 2021.3 hoặc các phiên bản mới hơn.