--> config model
done
--> Loading model
/home/jf/anaconda3/lib/python3.6/site-packages/onnx_tf/common/__init__.py:87: UserWarning: FrontendHandler.get_outputs_names is deprecated. It will be removed in future release.. Use node.outputs instead.
warnings.warn(message)
E Catch exception when loading onnx model: ./test.onnx!
E Traceback (most recent call last):
E File "rknn/api/rknn_base.py", line 469, in rknn.api.rknn_base.RKNNBase.load_onnx
E File "rknn/base/RKNNlib/converter/convert_onnx.py", line 494, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.__init__
E File "rknn/base/RKNNlib/converter/convert_onnx.py", line 497, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.__init__
E File "/home/jf/anaconda3/lib/python3.6/site-packages/onnx/checker.py", line 86, in check_model
E C.check_model(model.SerializeToString())
E onnx.onnx_cpp2py_export.checker.ValidationError: Unrecognized attribute: ceil_mode for operator MaxPool
E ==> Context: Bad node spec: input: "357" output: "358" op_type: "MaxPool" attribute { name: "ceil_mode" i: 1 type: INT } attribute { name: "kernel_shape" ints: 3 ints: 3 type: INTS } attribute { name: "pads" ints: 0 ints: 0 ints: 0 ints: 0 type: INTS } attribute { name: "strides" ints: 2 ints: 2 type: INTS }
Load test failed! 作者: bobby_jiang 时间: 2021-3-30 15:50
转onnx的时候把opset_version设成9以后再试下。你现在生成的onnx模型版本太高,解析失败了。作者: DDX 时间: 2021-11-15 11:12