Skip to content

receipt parsing using donut model, next we will add using LLM + OCR or VLM

Notifications You must be signed in to change notification settings

fahmiaziz98/receipt_parsing

Repository files navigation

Receipt Parsing

This project demonstrates how to use the Donut model with CORD dataset to perform receipt parsing. Receipt parsing involves extracting structured information from photographed receipts, such as itemized lists and totals.

Overview

  • The CORD dataset is a collection of receipts and invoices with ground truth annotations.
  • We leverage the power of Hugging Face Transformers to fine-tune a pre-trained Donut model for receipt parsing.
  • The model used in this project is fahmiaziz/finetune-donut-cord-v2.5, which is adapted to the CORD-V2 dataset you can see it here.

Requirements

To run this project, you need:

Model Training and Evaluation

We trained and evaluated our receipt parsing model using the Donut model with CORD-V2 dataset. The goal was to achieve a high accuracy of 90% or above. You can access the detailed training and evaluation results on Weights & Biases (WandB):

Model Training

Here are some highlights of the training and evaluation process:

  • Dataset: We used the CORD dataset, which includes a diverse collection of receipts and invoices.

  • Model: Our model is based on the fahmiaziz/finetune-donut-cord-v2.5 architecture that has been fine-tuned from donut-base and customized specifically for receipt parsing.

  • Training Metrics: During training, we monitor various metrics, including accuracy, Tree Edit Distance (Tree ED) to ensure model performance.

  • Evaluation: Our model achieved over 90% accuracy on the test dataset, demonstrating its effectiveness in parsing receipts.

  • Visualization: The training and evaluation process can be visualized through the WandB dashboard linked above.

Feel free to explore the details of the training and evaluation results in WandB to gain more insight into our model's performance.

Demonstration

About

receipt parsing using donut model, next we will add using LLM + OCR or VLM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages