CarlBrendt commited on
Commit
3fb71c0
1 Parent(s): d896e11

layoutlmv2-base-uncased_finetuned_docvqa

Browse files
README.md ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ base_model: microsoft/layoutlmv2-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: layoutlmv2-base-uncased_finetuned_docvqa
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # layoutlmv2-base-uncased_finetuned_docvqa
15
+
16
+ This model is a fine-tuned version of [microsoft/layoutlmv2-base-uncased](https://huggingface.co/microsoft/layoutlmv2-base-uncased) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 4.9097
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 5e-05
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 8
40
+ - seed: 42
41
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
42
+ - lr_scheduler_type: linear
43
+ - num_epochs: 20
44
+
45
+ ### Training results
46
+
47
+ | Training Loss | Epoch | Step | Validation Loss |
48
+ |:-------------:|:-----:|:----:|:---------------:|
49
+ | 5.3187 | 0.22 | 50 | 4.6843 |
50
+ | 4.5031 | 0.44 | 100 | 4.1274 |
51
+ | 4.128 | 0.66 | 150 | 3.7921 |
52
+ | 3.9091 | 0.88 | 200 | 3.6115 |
53
+ | 3.6889 | 1.11 | 250 | 3.5696 |
54
+ | 3.1707 | 1.33 | 300 | 3.1811 |
55
+ | 3.0354 | 1.55 | 350 | 2.8562 |
56
+ | 2.7856 | 1.77 | 400 | 2.7444 |
57
+ | 2.4529 | 1.99 | 450 | 2.7386 |
58
+ | 1.9655 | 2.21 | 500 | 2.6058 |
59
+ | 1.9712 | 2.43 | 550 | 2.3241 |
60
+ | 1.9305 | 2.65 | 600 | 2.2414 |
61
+ | 1.7701 | 2.88 | 650 | 2.1765 |
62
+ | 1.3844 | 3.1 | 700 | 2.7470 |
63
+ | 1.4493 | 3.32 | 750 | 2.3821 |
64
+ | 1.2487 | 3.54 | 800 | 2.0868 |
65
+ | 1.3189 | 3.76 | 850 | 2.5860 |
66
+ | 1.3709 | 3.98 | 900 | 2.4280 |
67
+ | 1.1087 | 4.2 | 950 | 2.5985 |
68
+ | 0.9481 | 4.42 | 1000 | 3.3342 |
69
+ | 1.0106 | 4.65 | 1050 | 3.0318 |
70
+ | 0.9703 | 4.87 | 1100 | 2.7671 |
71
+ | 0.788 | 5.09 | 1150 | 3.0565 |
72
+ | 0.6952 | 5.31 | 1200 | 3.3631 |
73
+ | 0.8017 | 5.53 | 1250 | 3.2544 |
74
+ | 0.6489 | 5.75 | 1300 | 3.0772 |
75
+ | 0.7419 | 5.97 | 1350 | 2.6226 |
76
+ | 0.558 | 6.19 | 1400 | 3.5186 |
77
+ | 0.5727 | 6.42 | 1450 | 3.3600 |
78
+ | 0.5322 | 6.64 | 1500 | 3.5181 |
79
+ | 0.6472 | 6.86 | 1550 | 3.6967 |
80
+ | 0.5805 | 7.08 | 1600 | 3.2425 |
81
+ | 0.4877 | 7.3 | 1650 | 3.4871 |
82
+ | 0.273 | 7.52 | 1700 | 3.5272 |
83
+ | 0.5527 | 7.74 | 1750 | 3.0758 |
84
+ | 0.2936 | 7.96 | 1800 | 3.3492 |
85
+ | 0.2585 | 8.19 | 1850 | 3.4836 |
86
+ | 0.5038 | 8.41 | 1900 | 3.3159 |
87
+ | 0.3943 | 8.63 | 1950 | 3.3977 |
88
+ | 0.3129 | 8.85 | 2000 | 3.8042 |
89
+ | 0.2977 | 9.07 | 2050 | 3.7062 |
90
+ | 0.2695 | 9.29 | 2100 | 3.7420 |
91
+ | 0.363 | 9.51 | 2150 | 3.6655 |
92
+ | 0.1834 | 9.73 | 2200 | 3.7858 |
93
+ | 0.3347 | 9.96 | 2250 | 3.9257 |
94
+ | 0.2159 | 10.18 | 2300 | 3.9075 |
95
+ | 0.2691 | 10.4 | 2350 | 3.8001 |
96
+ | 0.2965 | 10.62 | 2400 | 3.6177 |
97
+ | 0.3078 | 10.84 | 2450 | 3.8440 |
98
+ | 0.1397 | 11.06 | 2500 | 4.0490 |
99
+ | 0.052 | 11.28 | 2550 | 4.2137 |
100
+ | 0.1741 | 11.5 | 2600 | 4.2273 |
101
+ | 0.2956 | 11.73 | 2650 | 3.8075 |
102
+ | 0.2098 | 11.95 | 2700 | 4.1653 |
103
+ | 0.1466 | 12.17 | 2750 | 4.2080 |
104
+ | 0.1378 | 12.39 | 2800 | 4.0473 |
105
+ | 0.1864 | 12.61 | 2850 | 4.0665 |
106
+ | 0.1938 | 12.83 | 2900 | 4.1019 |
107
+ | 0.2332 | 13.05 | 2950 | 3.9249 |
108
+ | 0.0486 | 13.27 | 3000 | 4.2374 |
109
+ | 0.223 | 13.5 | 3050 | 4.1405 |
110
+ | 0.1387 | 13.72 | 3100 | 4.1833 |
111
+ | 0.1447 | 13.94 | 3150 | 4.0949 |
112
+ | 0.0265 | 14.16 | 3200 | 4.2652 |
113
+ | 0.0253 | 14.38 | 3250 | 4.5294 |
114
+ | 0.1781 | 14.6 | 3300 | 4.5310 |
115
+ | 0.0676 | 14.82 | 3350 | 4.3897 |
116
+ | 0.0692 | 15.04 | 3400 | 4.3176 |
117
+ | 0.1093 | 15.27 | 3450 | 4.3505 |
118
+ | 0.0219 | 15.49 | 3500 | 4.4436 |
119
+ | 0.0834 | 15.71 | 3550 | 4.4736 |
120
+ | 0.0728 | 15.93 | 3600 | 4.5234 |
121
+ | 0.0612 | 16.15 | 3650 | 4.6432 |
122
+ | 0.0844 | 16.37 | 3700 | 4.5729 |
123
+ | 0.0269 | 16.59 | 3750 | 4.7230 |
124
+ | 0.037 | 16.81 | 3800 | 4.7512 |
125
+ | 0.0532 | 17.04 | 3850 | 4.8247 |
126
+ | 0.0042 | 17.26 | 3900 | 4.8263 |
127
+ | 0.0684 | 17.48 | 3950 | 4.7495 |
128
+ | 0.0058 | 17.7 | 4000 | 4.7748 |
129
+ | 0.0158 | 17.92 | 4050 | 4.8827 |
130
+ | 0.0059 | 18.14 | 4100 | 4.8746 |
131
+ | 0.0217 | 18.36 | 4150 | 4.8981 |
132
+ | 0.0725 | 18.58 | 4200 | 4.9908 |
133
+ | 0.0399 | 18.81 | 4250 | 4.8712 |
134
+ | 0.0478 | 19.03 | 4300 | 4.9006 |
135
+ | 0.0212 | 19.25 | 4350 | 4.9160 |
136
+ | 0.0269 | 19.47 | 4400 | 4.9076 |
137
+ | 0.0317 | 19.69 | 4450 | 4.9081 |
138
+ | 0.0233 | 19.91 | 4500 | 4.9097 |
139
+
140
+
141
+ ### Framework versions
142
+
143
+ - Transformers 4.35.0
144
+ - Pytorch 2.1.0+cu118
145
+ - Datasets 2.14.6
146
+ - Tokenizers 0.14.1
config.json ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/layoutlmv2-base-uncased",
3
+ "architectures": [
4
+ "LayoutLMv2ForQuestionAnswering"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "convert_sync_batchnorm": true,
8
+ "coordinate_size": 128,
9
+ "detectron2_config_args": {
10
+ "MODEL.ANCHOR_GENERATOR.SIZES": [
11
+ [
12
+ 32
13
+ ],
14
+ [
15
+ 64
16
+ ],
17
+ [
18
+ 128
19
+ ],
20
+ [
21
+ 256
22
+ ],
23
+ [
24
+ 512
25
+ ]
26
+ ],
27
+ "MODEL.BACKBONE.NAME": "build_resnet_fpn_backbone",
28
+ "MODEL.FPN.IN_FEATURES": [
29
+ "res2",
30
+ "res3",
31
+ "res4",
32
+ "res5"
33
+ ],
34
+ "MODEL.MASK_ON": true,
35
+ "MODEL.PIXEL_STD": [
36
+ 57.375,
37
+ 57.12,
38
+ 58.395
39
+ ],
40
+ "MODEL.POST_NMS_TOPK_TEST": 1000,
41
+ "MODEL.RESNETS.ASPECT_RATIOS": [
42
+ [
43
+ 0.5,
44
+ 1.0,
45
+ 2.0
46
+ ]
47
+ ],
48
+ "MODEL.RESNETS.DEPTH": 101,
49
+ "MODEL.RESNETS.NUM_GROUPS": 32,
50
+ "MODEL.RESNETS.OUT_FEATURES": [
51
+ "res2",
52
+ "res3",
53
+ "res4",
54
+ "res5"
55
+ ],
56
+ "MODEL.RESNETS.SIZES": [
57
+ [
58
+ 32
59
+ ],
60
+ [
61
+ 64
62
+ ],
63
+ [
64
+ 128
65
+ ],
66
+ [
67
+ 256
68
+ ],
69
+ [
70
+ 512
71
+ ]
72
+ ],
73
+ "MODEL.RESNETS.STRIDE_IN_1X1": false,
74
+ "MODEL.RESNETS.WIDTH_PER_GROUP": 8,
75
+ "MODEL.ROI_BOX_HEAD.NAME": "FastRCNNConvFCHead",
76
+ "MODEL.ROI_BOX_HEAD.NUM_FC": 2,
77
+ "MODEL.ROI_BOX_HEAD.POOLER_RESOLUTION": 14,
78
+ "MODEL.ROI_HEADS.IN_FEATURES": [
79
+ "p2",
80
+ "p3",
81
+ "p4",
82
+ "p5"
83
+ ],
84
+ "MODEL.ROI_HEADS.NAME": "StandardROIHeads",
85
+ "MODEL.ROI_HEADS.NUM_CLASSES": 5,
86
+ "MODEL.ROI_MASK_HEAD.NAME": "MaskRCNNConvUpsampleHead",
87
+ "MODEL.ROI_MASK_HEAD.NUM_CONV": 4,
88
+ "MODEL.ROI_MASK_HEAD.POOLER_RESOLUTION": 7,
89
+ "MODEL.RPN.IN_FEATURES": [
90
+ "p2",
91
+ "p3",
92
+ "p4",
93
+ "p5",
94
+ "p6"
95
+ ],
96
+ "MODEL.RPN.POST_NMS_TOPK_TRAIN": 1000,
97
+ "MODEL.RPN.PRE_NMS_TOPK_TEST": 1000,
98
+ "MODEL.RPN.PRE_NMS_TOPK_TRAIN": 2000
99
+ },
100
+ "fast_qkv": true,
101
+ "gradient_checkpointing": false,
102
+ "has_relative_attention_bias": true,
103
+ "has_spatial_attention_bias": true,
104
+ "has_visual_segment_embedding": true,
105
+ "hidden_act": "gelu",
106
+ "hidden_dropout_prob": 0.1,
107
+ "hidden_size": 768,
108
+ "image_feature_pool_shape": [
109
+ 7,
110
+ 7,
111
+ 256
112
+ ],
113
+ "initializer_range": 0.02,
114
+ "intermediate_size": 3072,
115
+ "layer_norm_eps": 1e-12,
116
+ "max_2d_position_embeddings": 1024,
117
+ "max_position_embeddings": 512,
118
+ "max_rel_2d_pos": 256,
119
+ "max_rel_pos": 128,
120
+ "model_type": "layoutlmv2",
121
+ "num_attention_heads": 12,
122
+ "num_hidden_layers": 12,
123
+ "output_past": true,
124
+ "pad_token_id": 0,
125
+ "rel_2d_pos_bins": 64,
126
+ "rel_pos_bins": 32,
127
+ "shape_size": 128,
128
+ "torch_dtype": "float32",
129
+ "transformers_version": "4.35.0",
130
+ "type_vocab_size": 2,
131
+ "vocab_size": 30522
132
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dba1918afcb9aac5b2943f5ce87ee4a40f20498449740cb872da90c0dd985704
3
+ size 802053752
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
+ }
runs/Nov10_15-33-36_da2e60d1ff88/events.out.tfevents.1699630421.da2e60d1ff88.32254.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40afaacd0586c4bbdd8d398d8afe08523df9ff495147f6d535fcc140e892ac33
3
+ size 45156
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,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "[CLS]",
47
+ "cls_token_box": [
48
+ 0,
49
+ 0,
50
+ 0,
51
+ 0
52
+ ],
53
+ "do_basic_tokenize": true,
54
+ "do_lower_case": true,
55
+ "mask_token": "[MASK]",
56
+ "model_max_length": 512,
57
+ "never_split": null,
58
+ "only_label_first_subword": true,
59
+ "pad_token": "[PAD]",
60
+ "pad_token_box": [
61
+ 0,
62
+ 0,
63
+ 0,
64
+ 0
65
+ ],
66
+ "pad_token_label": -100,
67
+ "processor_class": "LayoutLMv2Processor",
68
+ "sep_token": "[SEP]",
69
+ "sep_token_box": [
70
+ 1000,
71
+ 1000,
72
+ 1000,
73
+ 1000
74
+ ],
75
+ "strip_accents": null,
76
+ "tokenize_chinese_chars": true,
77
+ "tokenizer_class": "LayoutLMv2Tokenizer",
78
+ "unk_token": "[UNK]"
79
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ea47a8f1f8c5b68c42e607a4cf77ea4d4def5db39d9e706eef61f6b1f434e2f
3
+ size 4600
vocab.txt ADDED
The diff for this file is too large to render. See raw diff