Downloads · 30 days
10
4% of all-time downloads
Mickeymarsh02/layoutlmv3-multimodel-finetuned-invoices03
layoutlmv3-multimodel-finetuned-invoices03 is a token classification model from Mickeymarsh02. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as cc-by-nc-sa-4.0.
This model is a fine-tuned version of microsoft/layoutlmv3-base on a custom invoice dataset for document understanding tasks. It was trained using the Hugging Face Trainer API with early stopping and mixed precision.
Downloads · 30 days
10
4% of all-time downloads
All-time downloads
252
Public
Parameters
126M
504 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors504 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/layoutlmv3-base on a custom invoice dataset for document understanding tasks.
It was trained using the Hugging Face Trainer API with early stopping and mixed precision.
The model achieves the following results on the held-out validation set after 10 epochs:
| Epoch | Train Loss | Val Loss | Precision | Recall | F1 |
|---|---|---|---|---|---|
| 1 | 0.8329 | 0.7094 | 0.7184 | 0.6524 | 0.6838 |
| 5 | 0.3815 | 0.3104 | 0.8625 | 0.8559 | 0.8592 |
| 8 | 0.2988 | 0.2350 | 0.8999 | 0.8803 | 0.8900 |
| 10 | 0.2499 | 0.2254 | 0.9037 | 0.8872 | 0.8954 |
Use cases:
Limitations:
3e-54410 (with early stopping)0.012from transformers import AutoModelForTokenClassification, AutoProcessor
repo_id = "your-username/layoutlmv3-finetuned-invoices"
model = AutoModelForTokenClassification.from_pretrained(repo_id)
processor = AutoProcessor.from_pretrained(repo_id)
# Example inference
from PIL import Image
image = Image.open("sample_invoice.png")
encoding = processor(image, return_tensors="pt")
outputs = model(**encoding)