|
请问如何解决 load_onnx 报错.
T TypeError: 'NoneType' object is not iterable
使用rknn v1.0.0
load_tflite OK
完整LOG
- --> config model
- done
- --> Loading ONNX model
- I Current ONNX Model use ir_version 4 opset_version 9
- D import clients finished
- I build output layer attach_BatchNormalization_31:out0
- I build output layer attach_Div_39:out0
- I Try match Div_39:out0
- I Match r_div [['Div_39']] [['Div']] to [['divide']]
- I Try match BatchNormalization_31:out0
- I Match r_bn_v6 [['BatchNormalization_31', 'Initializer_83', 'Initializer_79', 'Initializer_81', 'Initializer_82']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
- I Try match BatchNormalization_36:out0
- I Match r_bn_v6 [['BatchNormalization_36', 'Initializer_69', 'Initializer_65', 'Initializer_67', 'Initializer_68']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
- I Try match Unsqueeze_38:out0
- I Match r_unsqueeze [['Unsqueeze_38']] [['Unsqueeze']] to [['reshape']]
- I Try match Conv_30:out0
- I Match r_conv [['Conv_30', 'Initializer_78', 'Initializer_77']] [['Conv', 'Constant_0', 'Constant_1']] to [['convolution']]
- I Try match Conv_35:out0
- I Match r_conv [['Conv_35', 'Initializer_64', 'Initializer_63']] [['Conv', 'Constant_0', 'Constant_1']] to [['convolution']]
- I Try match ReduceL2_37:out0
- W Not match tensor ReduceL2_37:out0
- E Catch exception when loading onnx model: /N/share/build/rknn/rknn-toolkit/example/mobilenet_v1_onnx/superpoint_v1_ws.onnx!
- T Traceback (most recent call last):
- T File "rknn/api/rknn_base.py", line 344, in rknn.api.rknn_base.RKNNBase.load_onnx
- T File "rknn/base/RKNNlib/converter/convert_onnx.py", line 1037, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx.match_paragraph_and_param
- T File "rknn/base/RKNNlib/converter/convert_onnx.py", line 950, in rknn.base.RKNNlib.converter.convert_onnx.convert_onnx._onnx_push_ready_tensor
- T TypeError: 'NoneType' object is not iterable
- Load superpoint_v1.onnx failed!
- Process finished with exit code 255
|
|