Describe the bugTypeError: pytorch_to_keras() got an unexpected keyword argument 'names'
To Reproduce
I've tried to add in requirements.txt either pytorch2keras or git+https://github.com/nerox8664/pytorch2keras, but I've got the same error.
Snippet of your code
Expected behavior
Either to accept names as a parameter or remove "For the proper conversion to a tensorflow.js format, please use the new flag names='short'." from the README if it is not necessary for the conversion to a tensorflow.js format
Logs
If applicable, add error message to help explain your problem.
Traceback (most recent call last):
File "torch2h5.py", line 9, in <module>
k_model = pytorch_to_keras(model, input_var, [(10, 32, 32,)], verbose=True, names='short')
TypeError: pytorch_to_keras() got an unexpected keyword argument 'names'
Environment (please complete the following information):
macOS Catalina 10.15.3 (19D76)
Python 3.7.6
pytorch2keras 0.2.3 / master branch of this repository
Additional context
Add any other context about the problem here.
I added this lines in ~/.keras/keras.json as required:
Describe the bug
TypeError: pytorch_to_keras() got an unexpected keyword argument 'names'
To Reproduce I've tried to add in requirements.txt either
pytorch2keras
orgit+https://github.com/nerox8664/pytorch2keras
, but I've got the same error. Snippet of your codeExpected behavior Either to accept
names
as a parameter or remove "For the proper conversion to a tensorflow.js format, please use the new flagnames='short'
." from the README if it is not necessary for the conversion to a tensorflow.js formatLogs If applicable, add error message to help explain your problem.
Environment (please complete the following information):
Additional context Add any other context about the problem here. I added this lines in
~/.keras/keras.json
as required: