Toybrick

标题: TB-RK1808S0加载onnx转rknn模型提示RKNN_ERR_MODEL_INVALID [打印本页]

作者: 在路上_小菜鸟    时间: 2020-7-25 15:28
标题: TB-RK1808S0加载onnx转rknn模型提示RKNN_ERR_MODEL_INVALID
本帖最后由 在路上_小菜鸟 于 2020-7-25 17:17 编辑

使用rknn-toolkit-v1.3.2

PC模拟环境加载onnx转换的rknn模型运行成功。
同样的rknn模型加载到TB-RK1808S0,提示如下错误:
--> config model
done
--> Loading model
/home/ubuntu1604/.local/lib/python3.5/site-packages/onnx_tf/common/__init__.py:87: UserWarning: FrontendHandler.get_outputs_names is deprecated. It will be removed in future release.. Use node.outputs instead.
  warnings.warn(message)
W Warning: Axis may need to be adjusted according to original model shape.
done
--> Building model
W The target_platform is not set in config, using default target platform rk1808.
done
--> Export RKNN model
done
--> Init runtime environment
E RKNNAPI: rknn_init,  msg_load_ack fail, ack = 1(ACK_FAIL), expect 0(ACK_SUCC)!
E RKNNAPI: ==============================================
E RKNNAPI: RKNN VERSION:
E RKNNAPI:   API: 1.3.2 (9eebd73 build: 2020-04-02 15:30:51)
E RKNNAPI:   DRV: 1.3.2 (f113d64 build: 2020-04-23 09:35:26)
E RKNNAPI: ==============================================
E Catch exception when init runtime!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 1067, in rknn.api.rknn_base.RKNNBase.init_runtime
E   File "rknn/api/rknn_runtime.py", line 326, in rknn.api.rknn_runtime.RKNNRuntime.build_graph
E Exception: RKNN init failed. error code: RKNN_ERR_MODEL_INVALID

想要请教一下这是什么原因导致的?刚开始以为是API和DRV版本不一致导致的,但是升级到同样的版本之后仍然提示这个错误,请大神们指教。






欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3