ONNX模型转换校验时报错: the checker’s limitation:(only support ir_version<=7).
实际情况是用yolo类的模型,ir_version=10也是可以成功转换的。ONNX官网对池化层的支持也是8.
from cryptography.hazmat.backends import default_backend
2023-03-15 10:38:38,550 INFO log will be stored in /open_explorer/ddk/samples/ai_toolchain/horizon_model_convert_sample/04_detection/12_pld_scan_onnx/mapper/hb_mapper_checker.log
2023-03-15 10:38:38,550 INFO Start hb_mapper…
2023-03-15 10:38:38,551 INFO hbdk version 3.41.4
2023-03-15 10:38:38,551 INFO horizon_nn version 0.15.3
2023-03-15 10:38:38,551 INFO hb_mapper version 1.13.3
2023-03-15 10:38:38,557 INFO Model type: onnx
2023-03-15 10:38:38,558 INFO input names
2023-03-15 10:38:38,558 INFO input shapes {}
2023-03-15 10:38:38,558 INFO Begin model checking…
2023-03-15 10:38:38,578 INFO [Wed Mar 15 10:38:38 2023] Start to Horizon NN Model Convert.
2023-03-15 10:38:38,578 INFO The input parameter is not specified, convert with default parameters.
2023-03-15 10:38:38,579 INFO Parsing the hbdk parameter:{‘hbdk_pass_through_params’: ‘–O0’}
2023-03-15 10:38:38,579 INFO HorizonNN version: 0.15.3
2023-03-15 10:38:38,579 INFO HBDK version: 3.41.4
2023-03-15 10:38:38,580 INFO [Wed Mar 15 10:38:38 2023] Start to parse the onnx model.
2023-03-15 10:38:38,583 INFO Input ONNX model infomation:
ONNX IR version: 8
Opset version: [18]
Producer: caffe
Domain: none
Input name: data, [1, 3, 256, 256]
Output name: result_map, [1, 1, 256, 256]
2023-03-15 10:38:38,585 ERROR Your model ir_version is:8 which is higher than the checker’s limitation:(only support ir_version<=7).
2023-03-15 10:38:38,588 ERROR *** ERROR-OCCUR-DURING {horizon_nn.check_onnx} ***