-
Notifications
You must be signed in to change notification settings - Fork 454
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
Add pix2struct to ONNX support (v2) #1034
Conversation
Hello @fxmarty and sorry for the delay in answering... I show you here the traces of executing the tests with
Do you know from which class the pix2struct config should inherit? Any idea how to fix the errors? Thank you so much! |
I have another question, if I want to transform other pix2struct models to ONNX like:
|
Hi @arvisioncode , apologies for my late reply - I was off the past few weeks. I believe there was a bug in a previous PR of mine, should be fixed in #1075, that should avoid you the Looking into how the onnx config should look like. |
The documentation is not available anymore as the PR was closed or merged. |
One specificity about pix2struct seem to be that the inputs are Moreover pix2struct seem to be a seq2seq model, so its ONNX config should be closer to |
@arvisioncode I took the liberty to implement the config, it is a bit painful. We will need huggingface/transformers#23932 to be released first. Next is the support of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @arvisioncode thank you for your contribution, I worked a bit on your PR to have it merged!
thank you very much for your help @fxmarty ! I'm glad it's working now |
hey @arvisioncode @fxmarty I like to know how did you converted the pix2struct base model to ONNX step by step. |
What does this PR do?
Add support for pix2struct to ONNX. Continuation of #962 as it was closed by removing the forked repository.