CoolFace
Modelpublic

Theivaprakasham/layoutlmv3-finetuned-invoice

sourceHugging Faceupdated 4y agoView on Hugging Face
25likes133downloads
Model Card

LayoutLM-v3 model fine-tuned on invoice dataset

This model is a fine-tuned version of microsoft/layoutlmv3-base on the invoice dataset.

We use Microsoft’s LayoutLMv3 trained on Invoice Dataset to predict the Biller Name, Biller Address, Biller postcode, Duedate, GST, Invoicedate, Invoicenumber, Subtotal and Total. To use it, simply upload an image or use the example image below. Results will show up in a few seconds.

It achieves the following results on the evaluation set:

  • —Loss: 0.0012
  • —Precision: 1.0
  • —Recall: 1.0
  • —F1: 1.0
  • —Accuracy: 1.0

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

All the training codes are available from the below GitHub link.

https://github.com/Theivaprakasham/layoutlmv3

The model can be evaluated at the HuggingFace Spaces link:

https://huggingface.co/spaces/Theivaprakasham/layoutlmv3_invoice

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 1e-05
  • —trainbatchsize: 2
  • —evalbatchsize: 2
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —training_steps: 2000

Training results

Training LossEpochStepValidation LossPrecisionRecallF1Accuracy
No log2.01000.08780.9680.98170.97480.9966
No log4.02000.02410.9720.98580.97890.9971
No log6.03000.01860.9720.98580.97890.9971
No log8.04000.01840.98540.95740.97120.9956
0.130810.05000.01210.9720.98580.97890.9971
0.130812.06000.00760.99390.98780.99080.9987
0.130814.07000.00471.00.99590.99800.9996
0.130816.08000.00360.99600.99800.99700.9996
0.130818.09000.00450.99600.99800.99700.9996
0.006920.010000.00430.99600.99800.99700.9996
0.006922.011000.00161.01.01.01.0
0.006924.012000.00151.01.01.01.0
0.006926.013000.00141.01.01.01.0
0.006928.014000.00131.01.01.01.0
0.002630.015000.00121.01.01.01.0
0.002632.016000.00121.01.01.01.0
0.002634.017000.00111.01.01.01.0
0.002636.018000.00111.01.01.01.0
0.002638.019000.00111.01.01.01.0
0.00240.020000.00111.01.01.01.0

Framework versions

  • —Transformers 4.20.0.dev0
  • —Pytorch 1.11.0+cu113
  • —Datasets 2.2.2
  • —Tokenizers 0.12.1