fathyshalab
commited on
Commit
•
8cae6a5
1
Parent(s):
f666210
update model card README.md
Browse files
README.md
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
datasets:
|
5 |
+
- rvl_cdip
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: invoicevsadvertisement
|
10 |
+
results:
|
11 |
+
- task:
|
12 |
+
name: Image Classification
|
13 |
+
type: image-classification
|
14 |
+
dataset:
|
15 |
+
name: rvl_cdip
|
16 |
+
type: rvl_cdip
|
17 |
+
config: default
|
18 |
+
split: train
|
19 |
+
args: default
|
20 |
+
metrics:
|
21 |
+
- name: Accuracy
|
22 |
+
type: accuracy
|
23 |
+
value: 0.9892257579553997
|
24 |
+
---
|
25 |
+
|
26 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
27 |
+
should probably proofread and complete it, then remove this comment. -->
|
28 |
+
|
29 |
+
# invoicevsadvertisement
|
30 |
+
|
31 |
+
This model is a fine-tuned version of [microsoft/dit-base-finetuned-rvlcdip](https://huggingface.co/microsoft/dit-base-finetuned-rvlcdip) on the rvl_cdip dataset.
|
32 |
+
It achieves the following results on the evaluation set:
|
33 |
+
- Loss: 0.0292
|
34 |
+
- Accuracy: 0.9892
|
35 |
+
|
36 |
+
## Model description
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Intended uses & limitations
|
41 |
+
|
42 |
+
More information needed
|
43 |
+
|
44 |
+
## Training and evaluation data
|
45 |
+
|
46 |
+
More information needed
|
47 |
+
|
48 |
+
## Training procedure
|
49 |
+
|
50 |
+
### Training hyperparameters
|
51 |
+
|
52 |
+
The following hyperparameters were used during training:
|
53 |
+
- learning_rate: 5e-05
|
54 |
+
- train_batch_size: 192
|
55 |
+
- eval_batch_size: 192
|
56 |
+
- seed: 42
|
57 |
+
- gradient_accumulation_steps: 4
|
58 |
+
- total_train_batch_size: 768
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: linear
|
61 |
+
- lr_scheduler_warmup_ratio: 0.1
|
62 |
+
- num_epochs: 5
|
63 |
+
|
64 |
+
### Training results
|
65 |
+
|
66 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
67 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
68 |
+
| 0.4353 | 0.98 | 41 | 0.0758 | 0.9837 |
|
69 |
+
| 0.0542 | 1.98 | 82 | 0.0359 | 0.9860 |
|
70 |
+
| 0.0349 | 2.98 | 123 | 0.0336 | 0.9867 |
|
71 |
+
| 0.0323 | 3.98 | 164 | 0.0304 | 0.9876 |
|
72 |
+
| 0.0288 | 4.98 | 205 | 0.0292 | 0.9892 |
|
73 |
+
|
74 |
+
|
75 |
+
### Framework versions
|
76 |
+
|
77 |
+
- Transformers 4.21.3
|
78 |
+
- Pytorch 1.12.1
|
79 |
+
- Datasets 2.3.2
|
80 |
+
- Tokenizers 0.12.1
|