You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug I get this error:
Traceback (most recent call last):
File "torch2keras.py", line 83, in
transforms_2()
File "torch2keras.py", line 76, in transforms_2
k_model = pytorch_to_keras(model.module, input_var, (3, 448, 448), verbose=True, name_policy='short')
File "/home/fffan/.local/lib/python3.7/site-packages/pytorch2keras/converter.py", line 83, in pytorch_to_keras
verbose=verbose, change_ordering=change_ordering)
File "/home/fffan/.local/lib/python3.7/site-packages/onnx2keras/converter.py", line 181, in onnx_to_keras
keras_names
File "/home/fffan/.local/lib/python3.7/site-packages/onnx2keras/reshape_layers.py", line 107, in convert_concat
layers[node_name] = np.concatenate(layer_input, axis=params['axis'])
File "<array_function internals>", line 6, in concatenate
ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 1 dimension(s) and the array at index 1 has 0 dimension(s)
Code
Environment (please complete the following information):
onnx: 1.7
Python 3.7
pyotrch2keras: 0.2.4
Does somebody know how solve this problem?
The text was updated successfully, but these errors were encountered:
Describe the bug
I get this error:
Traceback (most recent call last):
File "torch2keras.py", line 83, in
transforms_2()
File "torch2keras.py", line 76, in transforms_2
k_model = pytorch_to_keras(model.module, input_var, (3, 448, 448), verbose=True, name_policy='short')
File "/home/fffan/.local/lib/python3.7/site-packages/pytorch2keras/converter.py", line 83, in pytorch_to_keras
verbose=verbose, change_ordering=change_ordering)
File "/home/fffan/.local/lib/python3.7/site-packages/onnx2keras/converter.py", line 181, in onnx_to_keras
keras_names
File "/home/fffan/.local/lib/python3.7/site-packages/onnx2keras/reshape_layers.py", line 107, in convert_concat
layers[node_name] = np.concatenate(layer_input, axis=params['axis'])
File "<array_function internals>", line 6, in concatenate
ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 1 dimension(s) and the array at index 1 has 0 dimension(s)
Code
Environment (please complete the following information):
Does somebody know how solve this problem?
The text was updated successfully, but these errors were encountered: