|
本帖最后由 jww 于 2021-3-9 11:23 编辑
我们首先运行了 resnet50.onnx 的 demo,没问题之后尝试转换我们自己的模型,碰到如下日志的报错
- toybrick@debian10:~/solo$ python3 test.py
- --> Config model
- done
- --> Loading model
- W Not match tensor Slice_917:out0
- E Try match Slice_917:out0 failed, catch exception!
- W ----------------Warning(1)----------------
- E Catch exception when loading onnx model: piggie.shapes.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_917:out0 failed, catch exception!
- Load resnet50v2 failed!
这里面提到的 Slice_917 out0 并没有什么特殊的地方,网络结构如下图:
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|