Toybrick

标题: onnx 模型转 rknn模型出问题 [打印本页]

作者: wen0554    时间: 2021-6-25 11:40
标题: onnx 模型转 rknn模型出问题
用户onnx转换rknn,用的toolkit是1.6.0,转换过程中rknn.load_onnx异常

I Match r_sigmoid [['Sigmoid_Sigmoid_395']] [['Sigmoid']] to [['Sigmoid']]
I Try match Resize_Resize_377ut0
W Not match tensor Resize_Resize_377ut0
E Try match Resize_Resize_377ut0 failed, catch exception!
W ----------------Warning(4)----------------
E Catch exception when loading onnx model: test.onnx!
E Traceback (most recent call last):
E   File "rknn/base/RKNNlib/converter/convert_onnx.py", line 826, in rknn.base.R                 KNNlib.converter.convert_onnx.convert_onnx.match_paragraph_and_param
E   File "rknn/base/RKNNlib/converter/convert_onnx.py", line 728, in rknn.base.R                 KNNlib.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.R                 KNNlib.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 Resize_Resize_377ut0 failed, catch exception!
Load resnet50v2 failed!


作者: 慕容紫    时间: 2021-7-2 10:35
同问!!!!!
I Try match ArgMax_ArgMax_0ut0
I Match r_argmax [['ArgMax_ArgMax_0']] [['ArgMax']] to [['argmax']]
I Try match Resize_Resize_6ut0
W Not match tensor Resize_Resize_6ut0
E Try match Resize_Resize_6ut0 failed, catch exception!
W ----------------Warning(13)----------------
E Catch exception when loading onnx model: D:\1RKNNtoolkit\deeplabv3p\modeeplabv3p.onnx!
E Traceback (most recent call last):
E   File "rknn\base\RKNNlib\converter\convert_onnx.py", line 1152, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.match_paragraph_and_param
E   File "rknn\base\RKNNlib\converter\convert_onnx.py", line 1054, 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 278, 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 1158, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.match_paragraph_and_param
--> Load onnx model failed!
作者: glory    时间: 2021-8-19 15:02
我也是这个错误,,,




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