模型突然无法推理出结果

前两天可以正常推理出结果,都是正常的,今天突然无法推理出结果了,为什么?程序没有改动。

红色字体信息和绿色字体信息分别是什么意思呢?

[BPU_PLAT]BPU Platform Version(1.3.0)!

[HBRT] set log level as 0. version = 3.13.31

ioctl read error, ret = -1 error = 5

keros_i2c_read failed

ioctl write error, ret = -1 error = 5

keros_i2c_write failed

ioctl write error, ret = -1 error = 5

keros_i2c_write failed

ioctl read error, ret = -1 error = 5

keros_i2c_read failed

ioctl read error, ret = -1 error = 5

keros_i2c_read failed

ioctl read error, ret = -1 error = 5

keros_i2c_read failed

ioctl read error, ret = -1 error = 5

keros_i2c_read failed

ioctl read error, ret = -1 error = 5

keros_i2c_read failed

[DNN] (/home/users/daofu.zhang/release-sdk/horizonrtd/src/util/keros_util.cpp: 98) keros_authentication failed, ret = 0

[DNN] (/home/users/daofu.zhang/release-sdk/horizonrtd/src/util/configuration.cpp: 159) Keros key init failed.

[DNN] Runtime version = 1.9.3_(3.13.31 HBRT)

I0104 12:11:04.314058 21260 main.cpp:117] Load model success

I0104 12:11:04.314129 21260 main.cpp:123] Start preparing the input and output tensor

I0104 12:11:04.314324 21260 main.cpp:135] Prepar the input and output tensor success

I0104 12:11:04.314402 21260 main.cpp:136] Start set input data to input tensor

I0104 12:11:04.326347 21260 main.cpp:146] read image to tensor as nv12 success

I0104 12:11:04.326424 21260 main.cpp:149] Start running inference

[DNN] (/home/users/daofu.zhang/release-sdk/horizonrtd/src/layer/slice.cpp: 117) slice operator axes’ size must be the same with input tensor dim size when missing steps

[DNN] (/home/users/daofu.zhang/release-sdk/horizonrtd/src/layer/slice.cpp: 117) slice operator axes’ size must be the same with input tensor dim size when missing steps

Execution time: 407 milliseconds

I0104 12:11:04.734251 21260 main.cpp:179] Inference success

I0104 12:11:04.734500 21260 main.cpp:188] Postprocess with output data

I0104 12:11:04.756628 21260 main.cpp:201] Flage

I0104 12:11:05.067867 21260 main.cpp:209] Release resources

I0104 12:11:05.072255 21260 main.cpp:227] Release resources success

红绿字不用管,是keros芯片的报错,和模型推理无关,可以忽视。

你的runtime版本太低了,可以升级一下,具体方法见3. 模型部署 — 地平线芯片算法工具链FAQ手册 1.0.2 文档 (horizon.cc) 7. 如何更新板端的工具链环境

根据报错信息看,是slice算子有问题,数量或者维度没有匹配上。可以用最新OE包提供的hrt_model_exec工具跑一下性能测试,看看能不能正常出现FPS结果。

您好,我也出现了相同的报错问题,slice operator axes’ size must be the same with input tensor dim size when missing steps 我使用hrt_model_exec工具进行了一下测试,能够出现正常的fps结果,包括推理时间等详细信息,不过还是想问一下您如何彻底消除这个错误,期待您的回复,谢谢大佬啦!