-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Converting wav2vec2-base-960h to ONNX report an error while converting #10004
Comments
Also interested in this question! |
Hmm, Wav2Vec2 is still a very recent addition and I don't have a good idea on an ETA for full ONNX support. However, I think your error above is due to the input that's passed to |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Hi! |
Hey @OthmaneJ, Think @ccoreilly managed to get it to work here: https://github.com/ccoreilly/wav2vec2-service/blob/master/convert_torch_to_onnx.py |
@patrickvonplaten thanks! 👌 |
hi @patrickvonplaten |
First of all, I want to say thanks to @patrickvonplaten for the work done in adding the model. Great job!
I tried to convert the model to ONNX but got an error, do you have any ideas how to fix it?
What I did:
python -m transformers.convert_graph_to_onnx --framework pt --model facebook/wav2vec2-base-960h wav2vec2-base-960h.onnx
But got an error:
The text was updated successfully, but these errors were encountered: