brandaobrandisborges
commited on
Commit
•
56423cf
1
Parent(s):
94bce7b
End of training
Browse files- README.md +70 -0
- logs/events.out.tfevents.1679039085.e0472f81775c.843.0 +2 -2
- preprocessor_config.json +14 -0
- pytorch_model.bin +1 -1
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +38 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
model-index:
|
5 |
+
- name: layoutlm-synth2
|
6 |
+
results: []
|
7 |
+
---
|
8 |
+
|
9 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
10 |
+
should probably proofread and complete it, then remove this comment. -->
|
11 |
+
|
12 |
+
# layoutlm-synth2
|
13 |
+
|
14 |
+
This model is a fine-tuned version of [microsoft/layoutlm-base-uncased](https://huggingface.co/microsoft/layoutlm-base-uncased) on the None dataset.
|
15 |
+
It achieves the following results on the evaluation set:
|
16 |
+
- Loss: 0.0270
|
17 |
+
- Ank Address: {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20}
|
18 |
+
- Ank Name: {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20}
|
19 |
+
- Ayee Address: {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20}
|
20 |
+
- Ayee Name: {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20}
|
21 |
+
- Icr: {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20}
|
22 |
+
- Mount: {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20}
|
23 |
+
- Overall Precision: 1.0
|
24 |
+
- Overall Recall: 1.0
|
25 |
+
- Overall F1: 1.0
|
26 |
+
- Overall Accuracy: 1.0
|
27 |
+
|
28 |
+
## Model description
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Intended uses & limitations
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training and evaluation data
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Training procedure
|
41 |
+
|
42 |
+
### Training hyperparameters
|
43 |
+
|
44 |
+
The following hyperparameters were used during training:
|
45 |
+
- learning_rate: 3e-05
|
46 |
+
- train_batch_size: 8
|
47 |
+
- eval_batch_size: 6
|
48 |
+
- seed: 42
|
49 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
50 |
+
- lr_scheduler_type: linear
|
51 |
+
- num_epochs: 5
|
52 |
+
- mixed_precision_training: Native AMP
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Ank Address | Ank Name | Ayee Address | Ayee Name | Icr | Mount | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
|
57 |
+
|:-------------:|:-----:|:----:|:---------------:|:------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------:|:-------------------------------------------------------------------------:|:----------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
|
58 |
+
| 1.4218 | 1.0 | 10 | 0.9682 | {'precision': 0.03225806451612903, 'recall': 0.1, 'f1': 0.04878048780487805, 'number': 20} | {'precision': 0.3333333333333333, 'recall': 0.05, 'f1': 0.08695652173913045, 'number': 20} | {'precision': 0.03125, 'recall': 0.1, 'f1': 0.047619047619047616, 'number': 20} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 20} | {'precision': 1.0, 'recall': 0.7, 'f1': 0.8235294117647058, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | 0.2393 | 0.325 | 0.2756 | 0.5811 |
|
59 |
+
| 0.7362 | 2.0 | 20 | 0.3668 | {'precision': 0.8636363636363636, 'recall': 0.95, 'f1': 0.9047619047619048, 'number': 20} | {'precision': 0.9090909090909091, 'recall': 1.0, 'f1': 0.9523809523809523, 'number': 20} | {'precision': 0.8571428571428571, 'recall': 0.9, 'f1': 0.8780487804878048, 'number': 20} | {'precision': 0.8, 'recall': 0.8, 'f1': 0.8000000000000002, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | 0.904 | 0.9417 | 0.9224 | 0.9855 |
|
60 |
+
| 0.2488 | 3.0 | 30 | 0.0892 | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | 1.0 | 1.0 | 1.0 | 1.0 |
|
61 |
+
| 0.0877 | 4.0 | 40 | 0.0373 | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | 1.0 | 1.0 | 1.0 | 1.0 |
|
62 |
+
| 0.0491 | 5.0 | 50 | 0.0270 | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | {'precision': 1.0, 'recall': 1.0, 'f1': 1.0, 'number': 20} | 1.0 | 1.0 | 1.0 | 1.0 |
|
63 |
+
|
64 |
+
|
65 |
+
### Framework versions
|
66 |
+
|
67 |
+
- Transformers 4.27.1
|
68 |
+
- Pytorch 1.13.1+cu116
|
69 |
+
- Datasets 2.10.1
|
70 |
+
- Tokenizers 0.13.2
|
logs/events.out.tfevents.1679039085.e0472f81775c.843.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4dcac31b8c6c1434608b339652259c104cb2e13b7b35b3c24a50d2258777ad3a
|
3 |
+
size 7743
|
preprocessor_config.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"apply_ocr": true,
|
3 |
+
"do_resize": true,
|
4 |
+
"feature_extractor_type": "LayoutLMv2FeatureExtractor",
|
5 |
+
"image_processor_type": "LayoutLMv2ImageProcessor",
|
6 |
+
"ocr_lang": null,
|
7 |
+
"processor_class": "LayoutLMv2Processor",
|
8 |
+
"resample": 2,
|
9 |
+
"size": {
|
10 |
+
"height": 224,
|
11 |
+
"width": 224
|
12 |
+
},
|
13 |
+
"tesseract_config": ""
|
14 |
+
}
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 450605317
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:83ad64cca04fadc0aeb94131a06677ad5f58fc1eff664a1a8dd6c6f090815695
|
3 |
size 450605317
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": null,
|
3 |
+
"apply_ocr": false,
|
4 |
+
"cls_token": "[CLS]",
|
5 |
+
"cls_token_box": [
|
6 |
+
0,
|
7 |
+
0,
|
8 |
+
0,
|
9 |
+
0
|
10 |
+
],
|
11 |
+
"do_basic_tokenize": true,
|
12 |
+
"do_lower_case": true,
|
13 |
+
"mask_token": "[MASK]",
|
14 |
+
"model_max_length": 512,
|
15 |
+
"never_split": null,
|
16 |
+
"only_label_first_subword": true,
|
17 |
+
"pad_token": "[PAD]",
|
18 |
+
"pad_token_box": [
|
19 |
+
0,
|
20 |
+
0,
|
21 |
+
0,
|
22 |
+
0
|
23 |
+
],
|
24 |
+
"pad_token_label": -100,
|
25 |
+
"processor_class": "LayoutLMv2Processor",
|
26 |
+
"sep_token": "[SEP]",
|
27 |
+
"sep_token_box": [
|
28 |
+
1000,
|
29 |
+
1000,
|
30 |
+
1000,
|
31 |
+
1000
|
32 |
+
],
|
33 |
+
"special_tokens_map_file": null,
|
34 |
+
"strip_accents": null,
|
35 |
+
"tokenize_chinese_chars": true,
|
36 |
+
"tokenizer_class": "LayoutLMv2Tokenizer",
|
37 |
+
"unk_token": "[UNK]"
|
38 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|