|
【技术讨论】
Nanodet模型onnx转rknn报错Loading dynamic inputs model is not support
发表于 2022-3-14 17:12:34
浏览:6201
|
回复:2
打印
只看该作者
[复制链接]
楼主
本帖最后由 cxr 于 2022-3-14 19:22 编辑
py=3.6 rknntoolket=1.7.1
使用1.6.0版本报错
报错内容:
--> Config model
done
--> Loading model
W Not match tensor Slice_Slice_355:out0
E Try match Slice_Slice_355:out0 failed, catch exception!
W ----------------Warning(1)----------------
E Catch exception when loading onnx model: nanodet_sim.onnx!
E Traceback (most recent call last):
E File "rknn\base\RKNNlib\converter\convert_onnx.py", line 826, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.match_paragraph_and_param
E File "rknn\base\RKNNlib\converter\convert_onnx.py", line 728, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx._onnx_push_ready_tensor
E TypeError: 'NoneType' object is not iterable
E During handling of the above exception, another exception occurred:
E Traceback (most recent call last):
E File "rknn\api\rknn_base.py", line 264, in rknn.api.rknn_base.RKNNBase.load_onnx
E File "rknn\base\RKNNlib\RK_nn.py", line 135, in rknn.base.RKNNlib.RK_nn.RKnn.load_onnx
E File "rknn\base\RKNNlib\app\importer\import_onnx.py", line 121, in rknn.base.RKNNlib.app.importer.import_onnx.Importonnx.run
E File "rknn\base\RKNNlib\converter\convert_onnx.py", line 832, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.match_paragraph_and_param
E File "rknn\api\rknn_log.py", line 312, in rknn.api.rknn_log.RKNNLog.e
E ValueError: Try match Slice_Slice_355:out0 failed, catch exception!
Load failed!
Process finished with exit code -1
使用1.7.1版本报错
--> Config model
done
--> Loading model
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: nanodet_sim.onnx!
E Traceback (most recent call last):
E File "rknn\base\RKNNlib\RK_nn.py", line 141, in rknn.base.RKNNlib.RK_nn.RKnn.load_onnx
E File "rknn\base\RKNNlib\app\importer\import_onnx.py", line 118, in rknn.base.RKNNlib.app.importer.import_onnx.Importonnx.run
E File "rknn\base\RKNNlib\converter\convert_onnx.py", line 68, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.__init__
E File "rknn\base\RKNNlib\converter\convert_onnx.py", line 73, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.__init__
E File "rknn\api\rknn_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 <log_feedback_to_the_rknn_toolkit_dev_team.log> to the RKNN Toolkit development team.
E You can also check github issues: https://github.com/rockchip-linux/rknn-toolkit/issues
Load failed!
|
|