MPolaris / onnx2tflite

Tool for onnx->keras or onnx->tflite. Hope this tool can help you.
Apache License 2.0
526 stars 42 forks source link

模型转换报错 #62

Open 965525196 opened 7 months ago

965525196 commented 7 months ago

Traceback (most recent call last): File "\onnx2tflite-main\onnx2tflite-main\onnx_tflite.py", line 2, in onnx_converter( File "D:\onnx2tflite-main\onnx2tflite-main\converter.py", line 21, in onnx_converter keras_model = keras_builder(model_proto, native_groupconv) File "D:\onnx2tflite-main\onnx2tflite-main\utils\builder.py", line 82, in keras_builder tf_tensor[node_outputs[index]] = tf_operator(tf_tensor, onnx_weights, node_inputs, op_attr, index=index)(_inputs) File "D:\Downloads\onnx2tflite-main\onnx2tflite-main\layers\common_layers.py", line 141, in init pad_shape = pads[i] + pads[i+2] IndexError: list index out of range

zhuweizzz commented 6 months ago

你好,请问你解决了吗,我们也遇到这个问题了

965525196 commented 6 months ago

你好,请问你解决了吗,我们也遇到这个问题了

我的pt模型里面用了一维卷积,后面换成二维卷积,卷积核n->[1,n]然后解决了