瑞芯微Rockchip开发者社区
直播中

lalajie

8年用户 1228经验值
擅长:模拟技术 存储技术
私信 关注
[问答]

怎么解决rknntoolkit1.7.1转onnx报错的问题呢?

-> Config model
    --> Loading onnx model
    I Start importing onnx...
   
    W Detect Input node:1325 is dynamic input, the shape info is [0]
   
    W Use the follow command to see more detail and try to fix the dynamic dim
    W python -m rknn.bin.freeze_inshape_for_onnx_model -h
    E Loading dynamic inputs model is not support, please fix it first
    E Catch exception when loading onnx model: E:examplesonnxnanonanodet_sim.onnx!
    E Traceback (most recent call last):
    E   File "rknnbaseRKNNlibRK_nn.py", line 141, in rknn.base.RKNNlib.RK_nn.RKnn.load_onnx
    E   File "rknnbaseRKNNlibappimporterimport_onnx.py", line 118, in rknn.base.RKNNlib.app.importer.import_onnx.Importonnx.run
    E   File "rknnbaseRKNNlibconverterconvert_onnx.py", line 68, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.__init__
    E   File "rknnbaseRKNNlibconverterconvert_onnx.py", line 73, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.__init__
    E   File "rknnapirknn_log.py", line 323, in rknn.api.rknn_log.RKNNLog.e
    E ValueError: Loading dynamic inputs model is not support, please fix it first
    E Please feedback the detailed log file to the RKNN Toolkit development team.
    E You can also check github issues: [
    --> Load onnx model failed!
   
2.jpg
3.jpg
4.jpg

回帖(1)

lalajie

2023-3-13 11:48:29
已解决,onnx模型参数initialize as input = false
举报

更多回帖

发帖
×
20
完善资料,
赚取积分