Instructions to use scharnot/donut-invoices with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use scharnot/donut-invoices with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("image-to-text", model="scharnot/donut-invoices")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("scharnot/donut-invoices", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Transformers does not recognize scharnot/donut-invoices
#2
by AItool - opened
ValueError: The checkpoint you are trying to load has model type donut but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.