Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

模型转换报错 #62

Open
965525196 opened this issue Apr 16, 2024 · 3 comments
Open

模型转换报错 #62

965525196 opened this issue Apr 16, 2024 · 3 comments

Comments

@965525196
Copy link

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
Copy link

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

@965525196
Copy link
Author

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

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

@Sunshine162
Copy link

Sunshine162 commented Dec 2, 2024

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

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

maxpool1d 也有同样的问题,将一维池化改成二维池化,可以解决此问题,希望可以帮到后面的人。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants