gmalivenko / pytorch2keras

PyTorch to Keras model convertor
https://pytorch2keras.readthedocs.io/en/latest/
MIT License
858 stars 143 forks source link

AttributeError: Cannot convert ConvTranspose2d with output_padding != 0 #112

Open jaggernaut007 opened 4 years ago

jaggernaut007 commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Snippet of your code

Expected behavior A clear and concise description of what you expected to happen.

Logs If applicable, add error message to help explain your problem.

Environment (please complete the following information):

Additional context DEBUG:onnx2keras:convtranpose:ConvTranspose without bias Traceback (most recent call last): File "src/margipose/bin/export_model.py", line 64, in main() File "src/margipose/bin/export_model.py", line 57, in main k_model = pytorch_to_keras(model,input_var,verbose=True) File "/home/shreyas/.local/lib/python3.8/site-packages/pytorch2keras/converter.py", line 81, in pytorch_to_keras k_model = onnx_to_keras(onnx_model=onnx_model, input_names=input_names, File "/home/shreyas/.local/lib/python3.8/site-packages/onnx2keras/converter.py", line 174, in onnx_to_keras AVAILABLE_CONVERTERS[node_type]( File "/home/shreyas/.local/lib/python3.8/site-packages/onnx2keras/convolution_layers.py", line 289, in convert_convtranspose raise AttributeError('Cannot convert ConvTranspose2d with output_padding != 0') AttributeError: Cannot convert ConvTranspose2d with output_padding != 0

frytoli commented 2 years ago

Any updates on this? Thanks in advance.