Giannis17 commited on
Commit
c790700
·
verified ·
1 Parent(s): 6034704

End of training

Browse files
README.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: cc-by-nc-sa-4.0
4
+ base_model: microsoft/layoutlmv3-base
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ - accuracy
12
+ model-index:
13
+ - name: layoutlmv3-finetuned-invoice_ConControl_v1
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # layoutlmv3-finetuned-invoice_ConControl_v1
21
+
22
+ This model is a fine-tuned version of [microsoft/layoutlmv3-base](https://huggingface.co/microsoft/layoutlmv3-base) on the None dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.1550
25
+ - Precision: 0.8826
26
+ - Recall: 0.7390
27
+ - F1: 0.8044
28
+ - Accuracy: 0.9788
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 2e-05
48
+ - train_batch_size: 16
49
+ - eval_batch_size: 16
50
+ - seed: 42
51
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: linear
53
+ - training_steps: 300
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
58
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
59
+ | No log | 1.0 | 8 | 0.5664 | 0.0 | 0.0 | 0.0 | 0.9383 |
60
+ | No log | 2.0 | 16 | 0.3789 | 0.0 | 0.0 | 0.0 | 0.9383 |
61
+ | No log | 3.0 | 24 | 0.3673 | 0.0 | 0.0 | 0.0 | 0.9383 |
62
+ | No log | 4.0 | 32 | 0.3596 | 0.0 | 0.0 | 0.0 | 0.9383 |
63
+ | No log | 5.0 | 40 | 0.3381 | 0.0 | 0.0 | 0.0 | 0.9383 |
64
+ | No log | 6.0 | 48 | 0.2985 | 0.0 | 0.0 | 0.0 | 0.9383 |
65
+ | No log | 7.0 | 56 | 0.2590 | 0.5833 | 0.0949 | 0.1633 | 0.9456 |
66
+ | No log | 8.0 | 64 | 0.2310 | 0.6629 | 0.3932 | 0.4936 | 0.9585 |
67
+ | No log | 9.0 | 72 | 0.2125 | 0.5837 | 0.5085 | 0.5435 | 0.9639 |
68
+ | No log | 10.0 | 80 | 0.2003 | 0.6130 | 0.5424 | 0.5755 | 0.9672 |
69
+ | No log | 11.0 | 88 | 0.1858 | 0.6667 | 0.5831 | 0.6221 | 0.9696 |
70
+ | No log | 12.0 | 96 | 0.1734 | 0.7188 | 0.6237 | 0.6679 | 0.9731 |
71
+ | No log | 13.0 | 104 | 0.1719 | 0.7510 | 0.6542 | 0.6993 | 0.9739 |
72
+ | No log | 14.0 | 112 | 0.1677 | 0.8048 | 0.6847 | 0.7399 | 0.9756 |
73
+ | No log | 15.0 | 120 | 0.1616 | 0.8008 | 0.6949 | 0.7441 | 0.9754 |
74
+ | No log | 16.0 | 128 | 0.1587 | 0.8038 | 0.7085 | 0.7532 | 0.9757 |
75
+ | No log | 17.0 | 136 | 0.1528 | 0.8275 | 0.7153 | 0.7673 | 0.9783 |
76
+ | No log | 18.0 | 144 | 0.1591 | 0.8554 | 0.7220 | 0.7831 | 0.9779 |
77
+ | No log | 19.0 | 152 | 0.1449 | 0.868 | 0.7356 | 0.7963 | 0.9791 |
78
+ | No log | 20.0 | 160 | 0.1568 | 0.8611 | 0.7356 | 0.7934 | 0.9786 |
79
+ | No log | 21.0 | 168 | 0.1509 | 0.8645 | 0.7356 | 0.7949 | 0.9788 |
80
+ | No log | 22.0 | 176 | 0.1465 | 0.8715 | 0.7356 | 0.7978 | 0.9786 |
81
+ | No log | 23.0 | 184 | 0.1446 | 0.8577 | 0.7356 | 0.7920 | 0.9783 |
82
+ | No log | 24.0 | 192 | 0.1469 | 0.8645 | 0.7356 | 0.7949 | 0.9788 |
83
+ | No log | 25.0 | 200 | 0.1513 | 0.8685 | 0.7390 | 0.7985 | 0.9788 |
84
+ | No log | 26.0 | 208 | 0.1554 | 0.8617 | 0.7390 | 0.7956 | 0.9788 |
85
+ | No log | 27.0 | 216 | 0.1511 | 0.8651 | 0.7390 | 0.7971 | 0.9786 |
86
+ | No log | 28.0 | 224 | 0.1566 | 0.872 | 0.7390 | 0.8 | 0.9788 |
87
+ | No log | 29.0 | 232 | 0.1544 | 0.8685 | 0.7390 | 0.7985 | 0.9788 |
88
+ | No log | 30.0 | 240 | 0.1510 | 0.8622 | 0.7424 | 0.7978 | 0.9791 |
89
+ | No log | 31.0 | 248 | 0.1589 | 0.8755 | 0.7390 | 0.8015 | 0.9788 |
90
+ | No log | 32.0 | 256 | 0.1550 | 0.8826 | 0.7390 | 0.8044 | 0.9788 |
91
+ | No log | 33.0 | 264 | 0.1498 | 0.8656 | 0.7424 | 0.7993 | 0.9791 |
92
+ | No log | 34.0 | 272 | 0.1539 | 0.8725 | 0.7424 | 0.8022 | 0.9793 |
93
+ | No log | 35.0 | 280 | 0.1542 | 0.8690 | 0.7424 | 0.8007 | 0.9793 |
94
+ | No log | 36.0 | 288 | 0.1538 | 0.8690 | 0.7424 | 0.8007 | 0.9793 |
95
+ | No log | 37.0 | 296 | 0.1543 | 0.8725 | 0.7424 | 0.8022 | 0.9793 |
96
+ | No log | 37.5 | 300 | 0.1543 | 0.8725 | 0.7424 | 0.8022 | 0.9793 |
97
+
98
+
99
+ ### Framework versions
100
+
101
+ - Transformers 4.50.0
102
+ - Pytorch 2.6.0+cu118
103
+ - Datasets 3.4.1
104
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LayoutLMv3ForTokenClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": 0,
7
+ "classifier_dropout": null,
8
+ "coordinate_size": 128,
9
+ "eos_token_id": 2,
10
+ "has_relative_attention_bias": true,
11
+ "has_spatial_attention_bias": true,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "B-Cargo Value",
17
+ "1": "B-Container No.",
18
+ "2": "B-Country of Origin",
19
+ "3": "B-Currency",
20
+ "4": "B-HS Code",
21
+ "5": "B-Invoice Number",
22
+ "6": "I-Container No.",
23
+ "7": "I-Country of Origin",
24
+ "8": "I-Currency",
25
+ "9": "I-HS Code",
26
+ "10": "I-Invoice Number",
27
+ "11": "O"
28
+ },
29
+ "initializer_range": 0.02,
30
+ "input_size": 224,
31
+ "intermediate_size": 3072,
32
+ "label2id": {
33
+ "B-Cargo Value": 0,
34
+ "B-Container No.": 1,
35
+ "B-Country of Origin": 2,
36
+ "B-Currency": 3,
37
+ "B-HS Code": 4,
38
+ "B-Invoice Number": 5,
39
+ "I-Container No.": 6,
40
+ "I-Country of Origin": 7,
41
+ "I-Currency": 8,
42
+ "I-HS Code": 9,
43
+ "I-Invoice Number": 10,
44
+ "O": 11
45
+ },
46
+ "layer_norm_eps": 1e-05,
47
+ "max_2d_position_embeddings": 1024,
48
+ "max_position_embeddings": 514,
49
+ "max_rel_2d_pos": 256,
50
+ "max_rel_pos": 128,
51
+ "model_type": "layoutlmv3",
52
+ "num_attention_heads": 12,
53
+ "num_channels": 3,
54
+ "num_hidden_layers": 12,
55
+ "pad_token_id": 1,
56
+ "patch_size": 16,
57
+ "rel_2d_pos_bins": 64,
58
+ "rel_pos_bins": 32,
59
+ "second_input_size": 112,
60
+ "shape_size": 128,
61
+ "text_embed": true,
62
+ "torch_dtype": "float32",
63
+ "transformers_version": "4.50.0",
64
+ "type_vocab_size": 1,
65
+ "visual_embed": true,
66
+ "vocab_size": 50265
67
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec62c70b57a80276284335df2f5c7a79e3a7e9e00014270e695ea67178582ee1
3
+ size 503733512
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "apply_ocr": false,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "LayoutLMv3ImageProcessor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "ocr_lang": null,
18
+ "processor_class": "LayoutLMv3Processor",
19
+ "resample": 2,
20
+ "rescale_factor": 0.00392156862745098,
21
+ "size": {
22
+ "height": 224,
23
+ "width": 224
24
+ },
25
+ "tesseract_config": ""
26
+ }
runs/Mar26_14-30-52_HYPERTALOS/events.out.tfevents.1742992253.HYPERTALOS.3700.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcd763d27e4d1a1bf9aa017cbba33cb60bb751389c858c62eee6183a2d0d2fe9
3
+ size 24204
runs/Mar26_14-30-52_HYPERTALOS/events.out.tfevents.1742993962.HYPERTALOS.3700.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c8a93b449044cf1328f69bab88d5c8d78733da5202a800025eb2395373f1d33
3
+ size 560
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": true,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "apply_ocr": false,
46
+ "bos_token": "<s>",
47
+ "clean_up_tokenization_spaces": false,
48
+ "cls_token": "<s>",
49
+ "cls_token_box": [
50
+ 0,
51
+ 0,
52
+ 0,
53
+ 0
54
+ ],
55
+ "eos_token": "</s>",
56
+ "errors": "replace",
57
+ "extra_special_tokens": {},
58
+ "mask_token": "<mask>",
59
+ "model_max_length": 512,
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": "LayoutLMv3Processor",
70
+ "sep_token": "</s>",
71
+ "sep_token_box": [
72
+ 0,
73
+ 0,
74
+ 0,
75
+ 0
76
+ ],
77
+ "tokenizer_class": "LayoutLMv3Tokenizer",
78
+ "trim_offsets": true,
79
+ "unk_token": "<unk>"
80
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86eea2ab14690528bd6f8b2b0fab57073c1ade5f66615a57cc115e1c317b99ed
3
+ size 5432
vocab.json ADDED
The diff for this file is too large to render. See raw diff