hb_mapper checker的时候报没有ONNX Runtime library

我checker模型的时候报错onnx runtime,Error message:Failed to load ONNX Runtime library. Set the ONNX Runtime library path to LD_LIBRARY_PATH

装了一个onnxruntime也还是一样报错

2023-02-10 15:14:56,205 INFO log will be stored in /open_explorer/centernet_resnet50/hb_mapper_checker.log

2023-02-10 15:14:56,206 INFO Start hb_mapper…

2023-02-10 15:14:56,206 INFO hbdk version 3.41.5

2023-02-10 15:14:56,206 INFO horizon_nn version 0.15.5

2023-02-10 15:14:56,206 INFO hb_mapper version 1.13.5

2023-02-10 15:14:56,309 INFO Model type: onnx

2023-02-10 15:14:56,309 INFO input names [‘input’]

2023-02-10 15:14:56,309 INFO input shapes {‘input’: [1, 3, 512, 512]}

2023-02-10 15:14:56,410 INFO Begin model checking…

2023-02-10 15:14:56,421 INFO [Fri Feb 10 15:14:56 2023] Start to Horizon NN Model Convert.

2023-02-10 15:14:56,421 INFO Parsing the input parameter:{‘input’: {‘input_shape’: [1, 3, 512, 512]}}

2023-02-10 15:14:56,422 INFO Parsing the hbdk parameter:{‘hbdk_pass_through_params’: ‘–O0’}

2023-02-10 15:14:56,422 INFO HorizonNN version: 0.15.5

2023-02-10 15:14:56,422 INFO HBDK version: 3.41.5

2023-02-10 15:14:56,422 INFO [Fri Feb 10 15:14:56 2023] Start to parse the onnx model.

2023-02-10 15:14:56,521 INFO Input ONNX model infomation:

ONNX IR version: 6

Opset version: [11]

Producer: pytorch1.7

Domain: none

Input name: input, [1, 3, 512, 512]

Output name: output, [1, 20, 128, 128]

Output name: 338, [1, 16384, 4]

2023-02-10 15:14:57,279 INFO [Fri Feb 10 15:14:57 2023] End to parse the onnx model.

2023-02-10 15:14:57,280 INFO Model input names parsed from model: [‘input’]

2023-02-10 15:14:57,418 INFO Saving the original float model: ./.hb_check/original_float_model.onnx.

2023-02-10 15:14:57,419 INFO [Fri Feb 10 15:14:57 2023] Start to optimize the model.

2023-02-10 15:14:57,728 ERROR There is an error in pass:constant_folding. Error message:Failed to load ONNX Runtime library. Set the ONNX Runtime library path to LD_LIBRARY_PATH

2023-02-10 15:14:57,731 ERROR *** ERROR-OCCUR-DURING {horizon_nn.check_onnx} ***

2023-02-10 15:14:57,736 INFO [Fri Feb 10 15:14:57 2023] End to optimize the model.

2023-02-10 15:14:57,736 INFO [Fri Feb 10 15:14:57 2023] End to Horizon NN Model Convert.

请问这个问题如何解决的 1.1.74仍然有这个问题 用的hat中的PETR代码导出的onnx进行PTQ量化

感谢您使用地平线芯片算法工具链,最近我们在收集大家的满意度反馈,欢迎您填写问卷,详细情况可见:https://developer.horizon.ai/forumDetail/146177053698464782

你好,请问你是使用的地平线提供的docker吗?

是的,docker_openexplorer_ubuntu_20_j5_cpu和docker_openexplorer_ubuntu_20_j5_gpu

你好,方便提供一下onnx模型吗?我们来复现一下您的问题~