donut
donut copied to clipboard
VisionEncoderDecoderModel convert
How to convert the trained donut model into the model structure of VisionEncoderDecoderModel?
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
您好,你的邮件我已经收到~