|
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
|