Các bước để sửa mô tả thay thế tùy chỉnh trong tệp Ký hiệu đối tượng JavaScript (JSON) đối với tên nút của mô hình
- Chuyển đổi thành công mô hình R-CNN TensorFlow tùy chỉnh thành IR.
- Tạo mô hình R-CNN TensorFlow mới nhanh hơn bằng cách sửa đổi mẫu trước đó.
- Chuyển đổi mô hình mới đó thành IR.
- Đã nhận được lỗi:
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.
- Vứt đồ thị đầu vào của model máy.
mo --input_model= --tensorboard_logdir= - Hình ảnh đồ thị đầu vào của mô hình trong TensorBoard.
- tensorboard --logdir=
- Sao chép và dán URL đầu ra trong trình duyệt.
- Kiểm tra xem tất cả các tên nút trong tệp JSON có khớp với tên nút của mô hình hay không. Các tên nút này được ghi trong "start_points" và "end_points" của "id: ObjectDetectionAPIProposalReplacement" trong tệp JSON.
- Sửa đổi tên nút trong tệp JSON.
- Chuyển đổi mô hình thành IR bằng lệnh:
mo --input_model= --transformations_config= --tensorflow_object_detection_api_pipeline_config= --input_shape= --output=detection_scores,detection_boxes,num_detections --input=image_tensor --reverse_input_channels