Jacques2207
commited on
Commit
•
95b2f16
1
Parent(s):
3676b86
End of training
Browse files- README.md +73 -0
- logs/events.out.tfevents.1679991505.138-2-233-57.101000.0 +2 -2
- merges.txt +0 -0
- preprocessor_config.json +27 -0
- pytorch_model.bin +1 -1
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +87 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-nc-sa-4.0
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
model-index:
|
6 |
+
- name: layoutlmv3-real_triplet
|
7 |
+
results: []
|
8 |
+
---
|
9 |
+
|
10 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
11 |
+
should probably proofread and complete it, then remove this comment. -->
|
12 |
+
|
13 |
+
# layoutlmv3-real_triplet
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [microsoft/layoutlmv3-base](https://huggingface.co/microsoft/layoutlmv3-base) on an unknown dataset.
|
16 |
+
It achieves the following results on the evaluation set:
|
17 |
+
- Loss: 0.0166
|
18 |
+
- Item: {'precision': 0.944560669456067, 'recall': 0.9495268138801262, 'f1': 0.9470372312532774, 'number': 951}
|
19 |
+
- Aption: {'precision': 0.9277436946148603, 'recall': 0.9249065579340808, 'f1': 0.9263229538880381, 'number': 2943}
|
20 |
+
- Ootnote: {'precision': 0.8297872340425532, 'recall': 0.8068965517241379, 'f1': 0.8181818181818181, 'number': 145}
|
21 |
+
- Ormula: {'precision': 0.9745836985100789, 'recall': 0.9754385964912281, 'f1': 0.9750109601052169, 'number': 2280}
|
22 |
+
- Overall Precision: 0.9450
|
23 |
+
- Overall Recall: 0.9441
|
24 |
+
- Overall F1: 0.9446
|
25 |
+
- Overall Accuracy: 0.9980
|
26 |
+
|
27 |
+
## Model description
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Intended uses & limitations
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training and evaluation data
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Training procedure
|
40 |
+
|
41 |
+
### Training hyperparameters
|
42 |
+
|
43 |
+
The following hyperparameters were used during training:
|
44 |
+
- learning_rate: 3e-05
|
45 |
+
- train_batch_size: 8
|
46 |
+
- eval_batch_size: 4
|
47 |
+
- seed: 42
|
48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
49 |
+
- lr_scheduler_type: linear
|
50 |
+
- num_epochs: 10
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss | Item | Aption | Ootnote | Ormula | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
|
55 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
|
56 |
+
| 0.0173 | 1.0 | 8507 | 0.0103 | {'precision': 0.9440175631174533, 'recall': 0.9043112513144059, 'f1': 0.9237379162191193, 'number': 951} | {'precision': 0.9030054644808743, 'recall': 0.8984029901461094, 'f1': 0.9006983478112757, 'number': 2943} | {'precision': 0.7337662337662337, 'recall': 0.7793103448275862, 'f1': 0.7558528428093645, 'number': 145} | {'precision': 0.9664195377235063, 'recall': 0.9719298245614035, 'f1': 0.9691668488956922, 'number': 2280} | 0.9279 | 0.9231 | 0.9255 | 0.9975 |
|
57 |
+
| 0.0072 | 2.0 | 17014 | 0.0121 | {'precision': 0.9393305439330544, 'recall': 0.9442691903259727, 'f1': 0.9417933927635028, 'number': 951} | {'precision': 0.9193493730938664, 'recall': 0.9218484539585458, 'f1': 0.9205972175093315, 'number': 2943} | {'precision': 0.7651006711409396, 'recall': 0.7862068965517242, 'f1': 0.7755102040816326, 'number': 145} | {'precision': 0.9686820356676816, 'recall': 0.9767543859649123, 'f1': 0.9727014632015725, 'number': 2280} | 0.9366 | 0.9419 | 0.9392 | 0.9977 |
|
58 |
+
| 0.0056 | 3.0 | 25521 | 0.0104 | {'precision': 0.9389067524115756, 'recall': 0.9211356466876972, 'f1': 0.9299363057324842, 'number': 951} | {'precision': 0.9154160982264665, 'recall': 0.9119945633707102, 'f1': 0.9137021276595745, 'number': 2943} | {'precision': 0.6842105263157895, 'recall': 0.8068965517241379, 'f1': 0.7405063291139241, 'number': 145} | {'precision': 0.973568281938326, 'recall': 0.9692982456140351, 'f1': 0.9714285714285714, 'number': 2280} | 0.9336 | 0.9316 | 0.9326 | 0.9978 |
|
59 |
+
| 0.004 | 4.0 | 34028 | 0.0120 | {'precision': 0.9771428571428571, 'recall': 0.8990536277602523, 'f1': 0.9364731653888281, 'number': 951} | {'precision': 0.9220199244245963, 'recall': 0.9119945633707102, 'f1': 0.9169798428425008, 'number': 2943} | {'precision': 0.8214285714285714, 'recall': 0.7931034482758621, 'f1': 0.8070175438596492, 'number': 145} | {'precision': 0.9733158355205599, 'recall': 0.9758771929824561, 'f1': 0.9745948313622427, 'number': 2280} | 0.9464 | 0.9304 | 0.9383 | 0.9981 |
|
60 |
+
| 0.0028 | 5.0 | 42535 | 0.0122 | {'precision': 0.9588431590656284, 'recall': 0.9064143007360673, 'f1': 0.9318918918918919, 'number': 951} | {'precision': 0.924378453038674, 'recall': 0.909616038056405, 'f1': 0.9169378318205172, 'number': 2943} | {'precision': 0.8984375, 'recall': 0.7931034482758621, 'f1': 0.8424908424908425, 'number': 145} | {'precision': 0.971453667105841, 'recall': 0.9701754385964912, 'f1': 0.9708141321044547, 'number': 2280} | 0.9461 | 0.9283 | 0.9371 | 0.9980 |
|
61 |
+
| 0.0022 | 6.0 | 51042 | 0.0161 | {'precision': 0.899009900990099, 'recall': 0.9547844374342797, 'f1': 0.9260581336053034, 'number': 951} | {'precision': 0.9120916133378242, 'recall': 0.9201495073054706, 'f1': 0.9161028416779432, 'number': 2943} | {'precision': 0.8538461538461538, 'recall': 0.7655172413793103, 'f1': 0.8072727272727271, 'number': 145} | {'precision': 0.9733275032794053, 'recall': 0.9763157894736842, 'f1': 0.9748193562513685, 'number': 2280} | 0.9307 | 0.9421 | 0.9364 | 0.9978 |
|
62 |
+
| 0.0015 | 7.0 | 59549 | 0.0187 | {'precision': 0.9438444924406048, 'recall': 0.9190325972660357, 'f1': 0.9312733084709643, 'number': 951} | {'precision': 0.9206730769230769, 'recall': 0.9109751953788651, 'f1': 0.9157984628522631, 'number': 2943} | {'precision': 0.875968992248062, 'recall': 0.7793103448275862, 'f1': 0.8248175182481752, 'number': 145} | {'precision': 0.9741681260945709, 'recall': 0.9758771929824561, 'f1': 0.9750219106047328, 'number': 2280} | 0.9427 | 0.9326 | 0.9376 | 0.9981 |
|
63 |
+
| 0.0012 | 8.0 | 68056 | 0.0145 | {'precision': 0.9401260504201681, 'recall': 0.9411146161934806, 'f1': 0.9406200735680504, 'number': 951} | {'precision': 0.9231032125768968, 'recall': 0.9177709819911655, 'f1': 0.9204293746805248, 'number': 2943} | {'precision': 0.8041958041958042, 'recall': 0.7931034482758621, 'f1': 0.7986111111111112, 'number': 145} | {'precision': 0.9753629564452265, 'recall': 0.9723684210526315, 'f1': 0.9738633867779486, 'number': 2280} | 0.9418 | 0.9381 | 0.9400 | 0.9981 |
|
64 |
+
| 0.0009 | 9.0 | 76563 | 0.0140 | {'precision': 0.9475890985324947, 'recall': 0.9505783385909569, 'f1': 0.9490813648293962, 'number': 951} | {'precision': 0.9295003422313484, 'recall': 0.9228678219503907, 'f1': 0.9261722080136402, 'number': 2943} | {'precision': 0.8740740740740741, 'recall': 0.8137931034482758, 'f1': 0.8428571428571429, 'number': 145} | {'precision': 0.9771025979744606, 'recall': 0.9732456140350877, 'f1': 0.975170292243463, 'number': 2280} | 0.9483 | 0.9427 | 0.9455 | 0.9980 |
|
65 |
+
| 0.0007 | 10.0 | 85070 | 0.0166 | {'precision': 0.944560669456067, 'recall': 0.9495268138801262, 'f1': 0.9470372312532774, 'number': 951} | {'precision': 0.9277436946148603, 'recall': 0.9249065579340808, 'f1': 0.9263229538880381, 'number': 2943} | {'precision': 0.8297872340425532, 'recall': 0.8068965517241379, 'f1': 0.8181818181818181, 'number': 145} | {'precision': 0.9745836985100789, 'recall': 0.9754385964912281, 'f1': 0.9750109601052169, 'number': 2280} | 0.9450 | 0.9441 | 0.9446 | 0.9980 |
|
66 |
+
|
67 |
+
|
68 |
+
### Framework versions
|
69 |
+
|
70 |
+
- Transformers 4.26.0
|
71 |
+
- Pytorch 1.12.1
|
72 |
+
- Datasets 2.9.0
|
73 |
+
- Tokenizers 0.13.2
|
logs/events.out.tfevents.1679991505.138-2-233-57.101000.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:8aabcfac03edf0fe4be6bc06732dda2d5ac0eff90b61fd826c98a75411d9c64f
|
3 |
+
size 11709
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
preprocessor_config.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"apply_ocr": false,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"feature_extractor_type": "LayoutLMv3FeatureExtractor",
|
7 |
+
"image_mean": [
|
8 |
+
0.5,
|
9 |
+
0.5,
|
10 |
+
0.5
|
11 |
+
],
|
12 |
+
"image_processor_type": "LayoutLMv3ImageProcessor",
|
13 |
+
"image_std": [
|
14 |
+
0.5,
|
15 |
+
0.5,
|
16 |
+
0.5
|
17 |
+
],
|
18 |
+
"ocr_lang": null,
|
19 |
+
"processor_class": "LayoutLMv3Processor",
|
20 |
+
"resample": 2,
|
21 |
+
"rescale_factor": 0.00392156862745098,
|
22 |
+
"size": {
|
23 |
+
"height": 224,
|
24 |
+
"width": 224
|
25 |
+
},
|
26 |
+
"tesseract_config": ""
|
27 |
+
}
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 503781199
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b3289f01fbab1e1b9a4a74a18ffe83f1d34cf8eaa3432cd831387a8260f1efea
|
3 |
size 503781199
|
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,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": true,
|
3 |
+
"apply_ocr": false,
|
4 |
+
"bos_token": {
|
5 |
+
"__type": "AddedToken",
|
6 |
+
"content": "<s>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"cls_token": {
|
13 |
+
"__type": "AddedToken",
|
14 |
+
"content": "<s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": true,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
},
|
20 |
+
"cls_token_box": [
|
21 |
+
0,
|
22 |
+
0,
|
23 |
+
0,
|
24 |
+
0
|
25 |
+
],
|
26 |
+
"eos_token": {
|
27 |
+
"__type": "AddedToken",
|
28 |
+
"content": "</s>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": true,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false
|
33 |
+
},
|
34 |
+
"errors": "replace",
|
35 |
+
"mask_token": {
|
36 |
+
"__type": "AddedToken",
|
37 |
+
"content": "<mask>",
|
38 |
+
"lstrip": true,
|
39 |
+
"normalized": true,
|
40 |
+
"rstrip": false,
|
41 |
+
"single_word": false
|
42 |
+
},
|
43 |
+
"model_max_length": 512,
|
44 |
+
"name_or_path": "microsoft/layoutlmv3-base",
|
45 |
+
"only_label_first_subword": true,
|
46 |
+
"pad_token": {
|
47 |
+
"__type": "AddedToken",
|
48 |
+
"content": "<pad>",
|
49 |
+
"lstrip": false,
|
50 |
+
"normalized": true,
|
51 |
+
"rstrip": false,
|
52 |
+
"single_word": false
|
53 |
+
},
|
54 |
+
"pad_token_box": [
|
55 |
+
0,
|
56 |
+
0,
|
57 |
+
0,
|
58 |
+
0
|
59 |
+
],
|
60 |
+
"pad_token_label": -100,
|
61 |
+
"processor_class": "LayoutLMv3Processor",
|
62 |
+
"sep_token": {
|
63 |
+
"__type": "AddedToken",
|
64 |
+
"content": "</s>",
|
65 |
+
"lstrip": false,
|
66 |
+
"normalized": true,
|
67 |
+
"rstrip": false,
|
68 |
+
"single_word": false
|
69 |
+
},
|
70 |
+
"sep_token_box": [
|
71 |
+
0,
|
72 |
+
0,
|
73 |
+
0,
|
74 |
+
0
|
75 |
+
],
|
76 |
+
"special_tokens_map_file": null,
|
77 |
+
"tokenizer_class": "LayoutLMv3Tokenizer",
|
78 |
+
"trim_offsets": true,
|
79 |
+
"unk_token": {
|
80 |
+
"__type": "AddedToken",
|
81 |
+
"content": "<unk>",
|
82 |
+
"lstrip": false,
|
83 |
+
"normalized": true,
|
84 |
+
"rstrip": false,
|
85 |
+
"single_word": false
|
86 |
+
}
|
87 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|