|
onnx模型为Pytorch转换而来,使用的ONNX版本为1.6,不知道是不是因为版本太高的原因导致转换失败
*************************
all device(s) with ntb mode:
TS018083201100794
*************************
devices: ([], ['TS018083201100794'])
--> config model
done
--> Loading model
WARNING: ONNX Optimizer has been moved to https://github.com/onnx/optimizer.
All further enhancements and fixes to optimizers will be done in this new repo.
The optimizer code in onnx/onnx repo will be removed in 1.9 release.
W Call onnx.optimizer.optimize fail, skip optimize
W Unknown batch size of input input, set it to 1 to do shape inference, may cause errors.
E Calc node Conv : Conv_0 output shape fail
W ----------------Warning(2)----------------
E Catch exception when loading onnx model: ./ParseHandwritingDecimalScore.onnx!
E Traceback (most recent call last):
E File "rknn/base/RKNNlib/onnx_ir/onnx_numpy_backend/shape_inference.py", line 65, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.shape_inference.infer_shape
E File "rknn/base/RKNNlib/onnx_ir/onnx_numpy_backend/ops/conv.py", line 49, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.ops.conv.Conv
E File "/home/septnet/.local/lib/python3.7/site-packages/torch/__init__.py", line 19, in <module>
E exit(-1)
E File "/home/xlg/mambaforge/envs/py37_septnet/lib/python3.7/_sitebuiltins.py", line 26, in __call__
E raise SystemExit(code)
E SystemExit: -1
E During handling of the above exception, another exception occurred:
E Traceback (most recent call last):
E File "rknn/api/rknn_base.py", line 292, in rknn.api.rknn_base.RKNNBase.load_onnx
E File "rknn/base/RKNNlib/RK_nn.py", line 141, in rknn.base.RKNNlib.RK_nn.RKnn.load_onnx
E File "rknn/base/RKNNlib/app/importer/import_onnx.py", line 118, in rknn.base.RKNNlib.app.importer.import_onnx.Importonnx.run
E File "rknn/base/RKNNlib/converter/convert_onnx.py", line 94, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.__init__
E File "rknn/base/RKNNlib/converter/convert_onnx.py", line 984, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx._shape_inference
E File "rknn/base/RKNNlib/onnx_ir/onnx_numpy_backend/shape_inference.py", line 70, in rknn.base.RKNNlib.onnx_ir.onnx_numpy_backend.shape_inference.infer_shape
E File "rknn/api/rknn_log.py", line 312, in rknn.api.rknn_log.RKNNLog.e
E ValueError: Calc node Conv : Conv_0 output shape fail
Load mobilenet_v1 failed!
|
|