Toybrick

onnx 模型转 rknn模型出问题

wen0554

新手上路

积分
26
楼主
发表于 2021-6-25 11:40:58    查看: 9293|回复: 2 | [复制链接]    打印 | 只看该作者
用户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!

回复

使用道具 举报

慕容紫

注册会员

积分
59
沙发
发表于 2021-7-2 10:35:42 | 只看该作者
同问!!!!!
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

新手上路

积分
14
板凳
发表于 2021-8-19 15:02:27 | 只看该作者
我也是这个错误,,,
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表