Donut consists of a vision encoder (Swin Transformer) and a text decoder (BART). Given an image, the encoder first encodes the image into a tensor of embeddings (of shape batch_size, seq_len, hidden_size), after which the decoder autoregressively generates text, conditioned on the encoding of the encoder.
Use with Inference Endpoints
Hugging Face Inference endpoints can directly work with binary data, this means that we can directly send our image from our document to the endpoint. We are going to use requests to send our requests. (make your you have it installed
pip install requests
)
donut-base-finetuned-cord-v2 huggingface.co is an AI model on huggingface.co that provides donut-base-finetuned-cord-v2's model effect (), which can be used instantly with this philschmid donut-base-finetuned-cord-v2 model. huggingface.co supports a free trial of the donut-base-finetuned-cord-v2 model, and also provides paid use of the donut-base-finetuned-cord-v2. Support call donut-base-finetuned-cord-v2 model through api, including Node.js, Python, http.
donut-base-finetuned-cord-v2 huggingface.co is an online trial and call api platform, which integrates donut-base-finetuned-cord-v2's modeling effects, including api services, and provides a free online trial of donut-base-finetuned-cord-v2, you can try donut-base-finetuned-cord-v2 online for free by clicking the link below.
philschmid donut-base-finetuned-cord-v2 online free url in huggingface.co:
donut-base-finetuned-cord-v2 is an open source model from GitHub that offers a free installation service, and any user can find donut-base-finetuned-cord-v2 on GitHub to install. At the same time, huggingface.co provides the effect of donut-base-finetuned-cord-v2 install, users can directly use donut-base-finetuned-cord-v2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
donut-base-finetuned-cord-v2 install url in huggingface.co: