Toybrick

onnx resize转换失败

jockeypan

注册会员

积分
198
楼主
发表于 2021-7-30 20:52:19    查看: 5246|回复: 1 | [复制链接]    打印 | 只看该作者
rknn版本:1.6.1
onnx opset_version = 11


如果用 opset_version = 9,可以成功,但是我想用bilinear插值,所以需要用11。


log 如下


--> Loading model...
W Call onnx.optimizer.optimize fail, skip optimize
W Not match tensor Resize_Resize_220ut0
E Try match Resize_Resize_220ut0 failed, catch exception!
W ----------------Warning(2)----------------
E Catch exception when loading onnx model: models/onnx/bisev2_simp.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
E   File "rknn/api/rknn_log.py", line 312, in rknn.api.rknn_log.RKNNLog.e
E ValueError: Try match Resize_Resize_220ut0 failed, catch exception!
done
--> Build RKNN model...
Traceback (most recent call last):
  File "rknn_convert.py", line 89, in <module>
    convert_model(model_path, out_path, pre_compile)
  File "rknn_convert.py", line 72, in convert_model
    rknn.build(do_quantization=model['quantize'], dataset=dataset_path, pre_compile=pre_compile)
  File "/usr/local/lib/python3.5/dist-packages/rknn/api/rknn.py", line 228, in build
    inputs = self.rknn_base.net.get_input_layers()
AttributeError: 'NoneType' object has no attribute 'get_input_layers'

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

zjleung

注册会员

积分
186
沙发
发表于 2021-9-22 14:40:08 | 只看该作者
解决了吗
回复

使用道具 举报

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

本版积分规则

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


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