pabloma09 commited on
Commit
0f63809
·
verified ·
1 Parent(s): cf50e2d

End of training

Browse files
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: microsoft/layoutlm-base-uncased
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: layoutlm-sroie_only
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # layoutlm-sroie_only
16
+
17
+ This model is a fine-tuned version of [microsoft/layoutlm-base-uncased](https://huggingface.co/microsoft/layoutlm-base-uncased) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.0629
20
+ - Ate: {'precision': 0.9090909090909091, 'recall': 1.0, 'f1': 0.9523809523809523, 'number': 50}
21
+ - Ddress: {'precision': 0.86, 'recall': 0.86, 'f1': 0.8599999999999999, 'number': 50}
22
+ - Ompany: {'precision': 0.7777777777777778, 'recall': 0.84, 'f1': 0.8076923076923077, 'number': 50}
23
+ - Otal: {'precision': 0.4166666666666667, 'recall': 0.3, 'f1': 0.3488372093023256, 'number': 50}
24
+ - Overall Precision: 0.7692
25
+ - Overall Recall: 0.75
26
+ - Overall F1: 0.7595
27
+ - Overall Accuracy: 0.9820
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 3e-05
47
+ - train_batch_size: 16
48
+ - eval_batch_size: 8
49
+ - seed: 42
50
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 4
53
+ - mixed_precision_training: Native AMP
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Ate | Ddress | Ompany | Otal | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
58
+ |:-------------:|:-----:|:----:|:---------------:|:-----------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
59
+ | 0.5019 | 1.0 | 36 | 0.1120 | {'precision': 0.671875, 'recall': 0.86, 'f1': 0.7543859649122807, 'number': 50} | {'precision': 0.7454545454545455, 'recall': 0.82, 'f1': 0.780952380952381, 'number': 50} | {'precision': 0.5344827586206896, 'recall': 0.62, 'f1': 0.574074074074074, 'number': 50} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 50} | 0.6497 | 0.575 | 0.6101 | 0.9739 |
60
+ | 0.0635 | 2.0 | 72 | 0.0728 | {'precision': 0.8448275862068966, 'recall': 0.98, 'f1': 0.9074074074074074, 'number': 50} | {'precision': 0.86, 'recall': 0.86, 'f1': 0.8599999999999999, 'number': 50} | {'precision': 0.7924528301886793, 'recall': 0.84, 'f1': 0.8155339805825242, 'number': 50} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 50} | 0.8272 | 0.67 | 0.7403 | 0.9818 |
61
+ | 0.0429 | 3.0 | 108 | 0.0650 | {'precision': 0.9090909090909091, 'recall': 1.0, 'f1': 0.9523809523809523, 'number': 50} | {'precision': 0.86, 'recall': 0.86, 'f1': 0.8599999999999999, 'number': 50} | {'precision': 0.7924528301886793, 'recall': 0.84, 'f1': 0.8155339805825242, 'number': 50} | {'precision': 0.4117647058823529, 'recall': 0.28, 'f1': 0.3333333333333333, 'number': 50} | 0.7760 | 0.745 | 0.7602 | 0.9818 |
62
+ | 0.0341 | 4.0 | 144 | 0.0629 | {'precision': 0.9090909090909091, 'recall': 1.0, 'f1': 0.9523809523809523, 'number': 50} | {'precision': 0.86, 'recall': 0.86, 'f1': 0.8599999999999999, 'number': 50} | {'precision': 0.7777777777777778, 'recall': 0.84, 'f1': 0.8076923076923077, 'number': 50} | {'precision': 0.4166666666666667, 'recall': 0.3, 'f1': 0.3488372093023256, 'number': 50} | 0.7692 | 0.75 | 0.7595 | 0.9820 |
63
+
64
+
65
+ ### Framework versions
66
+
67
+ - Transformers 4.50.0
68
+ - Pytorch 2.1.0+cu118
69
+ - Datasets 3.4.1
70
+ - Tokenizers 0.21.1
logs/events.out.tfevents.1742906856.14d8c44976ca.6703.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:36a4ac249db89b5e25b7b6c499d77e48fe14ae86693c9becfd7c4752abb209d8
3
- size 7302
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:706d4aee44488878724240dc4ec66439916fa3c90530a7164d87619ac1f61e7f
3
+ size 8371
preprocessor_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "apply_ocr": true,
3
+ "do_resize": true,
4
+ "image_processor_type": "LayoutLMv2ImageProcessor",
5
+ "ocr_lang": null,
6
+ "processor_class": "LayoutLMv2Processor",
7
+ "resample": 2,
8
+ "size": {
9
+ "height": 224,
10
+ "width": 224
11
+ },
12
+ "tesseract_config": ""
13
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "additional_special_tokens": [],
45
+ "apply_ocr": false,
46
+ "clean_up_tokenization_spaces": false,
47
+ "cls_token": "[CLS]",
48
+ "cls_token_box": [
49
+ 0,
50
+ 0,
51
+ 0,
52
+ 0
53
+ ],
54
+ "do_basic_tokenize": true,
55
+ "do_lower_case": true,
56
+ "extra_special_tokens": {},
57
+ "mask_token": "[MASK]",
58
+ "model_max_length": 512,
59
+ "never_split": null,
60
+ "only_label_first_subword": true,
61
+ "pad_token": "[PAD]",
62
+ "pad_token_box": [
63
+ 0,
64
+ 0,
65
+ 0,
66
+ 0
67
+ ],
68
+ "pad_token_label": -100,
69
+ "processor_class": "LayoutLMv2Processor",
70
+ "sep_token": "[SEP]",
71
+ "sep_token_box": [
72
+ 1000,
73
+ 1000,
74
+ 1000,
75
+ 1000
76
+ ],
77
+ "strip_accents": null,
78
+ "tokenize_chinese_chars": true,
79
+ "tokenizer_class": "LayoutLMv2Tokenizer",
80
+ "unk_token": "[UNK]"
81
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff