专栏算法工具链J5 Open Explorer hb_mapper checker报错

J5 Open Explorer hb_mapper checker报错

解答中
Darth Nihilus4小时前
22
5

报错如下:sudo docker run -it --rm -v /open_explorer -v ./dataset:/data/horizon_j5/data openexplorer/ai_toolchain_ubuntu_20_j5_cpu:v1.1.77-py38

[sudo] password for openexplorer:

root@72665e89a381:/open_explorer# cd ..

root@72665e89a381:/# hb_mapper checker --model-type onnx --model /data/horizon_j5/data/yolov5n.onnx --march bayes

/usr/local/lib/python3.8/dist-packages/paramiko/pkey.py:100: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.

"cipher": algorithms.TripleDES,

/usr/local/lib/python3.8/dist-packages/paramiko/transport.py:259: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from this module in 48.0.0.

"class": algorithms.TripleDES,

2026-05-14 14:42:01,498 INFO log will be stored in //hb_mapper_checker.log

2026-05-14 14:42:01,498 INFO Start hb_mapper....

2026-05-14 14:42:01,498 INFO hbdk version 3.49.13

2026-05-14 14:42:01,498 INFO horizon_nn version 1.0.9

2026-05-14 14:42:01,498 INFO hb_mapper version 1.24.1

2026-05-14 14:42:01,518 INFO Model type: onnx

2026-05-14 14:42:01,519 INFO input names []

2026-05-14 14:42:01,519 INFO input shapes {}

2026-05-14 14:42:01,519 INFO Begin model checking....

2026-05-14 14:42:01,530 INFO Start to Horizon NN Model Convert.

2026-05-14 14:42:01,561 INFO Loading horizon_nn debug methods:[]

2026-05-14 14:42:01,562 INFO The specified model compilation architecture: bayes.

2026-05-14 14:42:01,563 INFO The specified model compilation optimization parameters: [].

2026-05-14 14:42:01,563 INFO Start to prepare the onnx model.

2026-05-14 14:42:01,598 INFO Input ONNX Model Information:

ONNX IR version: 8

Opset version: ['ai.onnx v17', 'horizon v1']

Producer: pytorch v1.14.0

Domain: None

Model version: None

Graph input:

images: shape=[1, 3, 640, 640], dtype=FLOAT16

Graph output:

output0: shape=[1, 25200, 85], dtype=FLOAT16

2026-05-14 14:42:01,601 ERROR *** ERROR-OCCUR-DURING {horizon_nn.build_onnx} ***, error message: The opset version of the model is 17, the maximum supported version is 11.

2026-05-14 14:42:01,601 INFO End to prepare the onnx model.

2026-05-14 14:42:01,601 INFO End to Horizon NN Model Convert.

算法工具链
技术深度解析征程5
评论1
0/1000
  • YCJ
    Lv.4
    问题出在“2026-05-14 14:42:01,601 ERROR *** ERROR-OCCUR-DURING {horizon_nn.build_onnx} ***, error message: The opset version of the model is 17, the maximum supported version is 11.”,J5 量化编译只支持opset版本为11及以下,建议你导出onnx时候加上opset版本参数为11
    4小时前
    0
    4
    • Darth Nihilus回复YCJ:
      我是直接下载的官方onnx文件。目前我没有找到支持11版本的yolo的onnx。机器性能可能不大支撑我自己导出。我问了咱们天工平台,给出的修改opset的方法好像都不大行。
      3小时前
      0
    • YCJ回复Darth Nihilus:

      需要的话我可以转一个给您

      3小时前
      0
    • Darth Nihilus回复YCJ:
      您转我一个吧~感谢感谢ganbei_org.svg
      3小时前
      0
    • YCJ回复Darth Nihilus:
      3小时前
      0