Skip to content
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

VisionEncoderDecoderModel convert #284

Open
sjtu-cz opened this issue Jan 25, 2024 · 2 comments
Open

VisionEncoderDecoderModel convert #284

sjtu-cz opened this issue Jan 25, 2024 · 2 comments

Comments

@sjtu-cz
Copy link

sjtu-cz commented Jan 25, 2024

How to convert the trained donut model into the model structure of VisionEncoderDecoderModel?

@felixvor
Copy link

Smells like an xy-problem, what exactly are you trying to do? Importing a donut model with the huggingface VisionEncoderDecoder implementation should be straight forward. Just make sure you use the right DonutTokenizer with it. The docs should cover what you are looking for:
https://huggingface.co/docs/transformers/model_doc/donut

@sjtu-cz
Copy link
Author

sjtu-cz commented Feb 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants