dwitidibyajyoti
commited on
Commit
•
89f4bb4
1
Parent(s):
518c186
End of training
Browse files- README.md +75 -0
- added_tokens.json +7 -0
- config.json +66 -0
- merges.txt +0 -0
- preprocessor_config.json +27 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +9 -0
- tokenizer.json +0 -0
- tokenizer_config.json +80 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-nc-sa-4.0
|
3 |
+
base_model: microsoft/layoutlmv3-base
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- precision
|
8 |
+
- recall
|
9 |
+
- f1
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: layoutmlv3_thursday_oct4_v7
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# layoutmlv3_thursday_oct4_v7
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [microsoft/layoutlmv3-base](https://huggingface.co/microsoft/layoutlmv3-base) on the None dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.2861
|
24 |
+
- Precision: 0.8352
|
25 |
+
- Recall: 0.7894
|
26 |
+
- F1: 0.8116
|
27 |
+
- Accuracy: 0.9586
|
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: 1e-05
|
47 |
+
- train_batch_size: 2
|
48 |
+
- eval_batch_size: 2
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- training_steps: 1000
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|
57 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
|
58 |
+
| No log | 1.12 | 100 | 0.2568 | 0.8574 | 0.7770 | 0.8152 | 0.9586 |
|
59 |
+
| No log | 2.25 | 200 | 0.2653 | 0.8268 | 0.7858 | 0.8058 | 0.9581 |
|
60 |
+
| No log | 3.37 | 300 | 0.2728 | 0.7982 | 0.7770 | 0.7874 | 0.9565 |
|
61 |
+
| No log | 4.49 | 400 | 0.2626 | 0.8569 | 0.7735 | 0.8130 | 0.9589 |
|
62 |
+
| 0.114 | 5.62 | 500 | 0.2861 | 0.8352 | 0.7894 | 0.8116 | 0.9586 |
|
63 |
+
| 0.114 | 6.74 | 600 | 0.2978 | 0.8205 | 0.7929 | 0.8065 | 0.9582 |
|
64 |
+
| 0.114 | 7.87 | 700 | 0.2942 | 0.8256 | 0.7876 | 0.8062 | 0.9584 |
|
65 |
+
| 0.114 | 8.99 | 800 | 0.2910 | 0.8420 | 0.7735 | 0.8063 | 0.9579 |
|
66 |
+
| 0.114 | 10.11 | 900 | 0.3028 | 0.8346 | 0.7770 | 0.8048 | 0.9574 |
|
67 |
+
| 0.0846 | 11.24 | 1000 | 0.2989 | 0.8318 | 0.7876 | 0.8091 | 0.9581 |
|
68 |
+
|
69 |
+
|
70 |
+
### Framework versions
|
71 |
+
|
72 |
+
- Transformers 4.35.0.dev0
|
73 |
+
- Pytorch 2.0.1+cu118
|
74 |
+
- Datasets 2.14.5
|
75 |
+
- Tokenizers 0.14.0
|
added_tokens.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</s>": 2,
|
3 |
+
"<mask>": 50264,
|
4 |
+
"<pad>": 1,
|
5 |
+
"<s>": 0,
|
6 |
+
"<unk>": 3
|
7 |
+
}
|
config.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/layoutlmv3-base",
|
3 |
+
"architectures": [
|
4 |
+
"LayoutLMv3ForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"coordinate_size": 128,
|
10 |
+
"eos_token_id": 2,
|
11 |
+
"has_relative_attention_bias": true,
|
12 |
+
"has_spatial_attention_bias": true,
|
13 |
+
"hidden_act": "gelu",
|
14 |
+
"hidden_dropout_prob": 0.1,
|
15 |
+
"hidden_size": 768,
|
16 |
+
"id2label": {
|
17 |
+
"0": "S-VALUE",
|
18 |
+
"1": "B-IGNORE",
|
19 |
+
"2": "E-IGNORE",
|
20 |
+
"3": "S-KEY",
|
21 |
+
"4": "I-IGNORE",
|
22 |
+
"5": "S-IGNORE",
|
23 |
+
"6": "E-VALUE",
|
24 |
+
"7": "B-VALUE",
|
25 |
+
"8": "O",
|
26 |
+
"9": "B-KEY",
|
27 |
+
"10": "I-VALUE"
|
28 |
+
},
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"input_size": 224,
|
31 |
+
"intermediate_size": 3072,
|
32 |
+
"label2id": {
|
33 |
+
"B-IGNORE": 1,
|
34 |
+
"B-KEY": 9,
|
35 |
+
"B-VALUE": 7,
|
36 |
+
"E-IGNORE": 2,
|
37 |
+
"E-VALUE": 6,
|
38 |
+
"I-IGNORE": 4,
|
39 |
+
"I-VALUE": 10,
|
40 |
+
"O": 8,
|
41 |
+
"S-IGNORE": 5,
|
42 |
+
"S-KEY": 3,
|
43 |
+
"S-VALUE": 0
|
44 |
+
},
|
45 |
+
"layer_norm_eps": 1e-05,
|
46 |
+
"max_2d_position_embeddings": 1024,
|
47 |
+
"max_position_embeddings": 514,
|
48 |
+
"max_rel_2d_pos": 256,
|
49 |
+
"max_rel_pos": 128,
|
50 |
+
"model_type": "layoutlmv3",
|
51 |
+
"num_attention_heads": 12,
|
52 |
+
"num_channels": 3,
|
53 |
+
"num_hidden_layers": 12,
|
54 |
+
"pad_token_id": 1,
|
55 |
+
"patch_size": 16,
|
56 |
+
"rel_2d_pos_bins": 64,
|
57 |
+
"rel_pos_bins": 32,
|
58 |
+
"second_input_size": 112,
|
59 |
+
"shape_size": 128,
|
60 |
+
"text_embed": true,
|
61 |
+
"torch_dtype": "float32",
|
62 |
+
"transformers_version": "4.35.0.dev0",
|
63 |
+
"type_vocab_size": 1,
|
64 |
+
"visual_embed": true,
|
65 |
+
"vocab_size": 50265
|
66 |
+
}
|
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
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb8f14809a8c179279ab7d43499ab059ff08fbc82243a76c36c1d1b955eddadf
|
3 |
+
size 503778605
|
special_tokens_map.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": "<mask>",
|
6 |
+
"pad_token": "<pad>",
|
7 |
+
"sep_token": "</s>",
|
8 |
+
"unk_token": "<unk>"
|
9 |
+
}
|
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 |
+
"additional_special_tokens": [],
|
46 |
+
"apply_ocr": false,
|
47 |
+
"bos_token": "<s>",
|
48 |
+
"clean_up_tokenization_spaces": true,
|
49 |
+
"cls_token": "<s>",
|
50 |
+
"cls_token_box": [
|
51 |
+
0,
|
52 |
+
0,
|
53 |
+
0,
|
54 |
+
0
|
55 |
+
],
|
56 |
+
"eos_token": "</s>",
|
57 |
+
"errors": "replace",
|
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:100d03add082f48639a50c5cfd9bd8ec97714af573ed0b69c06d135581ec87f5
|
3 |
+
size 4091
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|