Teaa314 commited on
Commit
6b89578
·
1 Parent(s): f3578d1

First commit

Browse files
config.json ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "dtype": "float32",
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": "O",
18
+ "1": "B-INVOICE_NUMBER",
19
+ "2": "I-INVOICE_NUMBER",
20
+ "3": "B-DATE",
21
+ "4": "I-DATE",
22
+ "5": "B-VENDOR_NAME",
23
+ "6": "I-VENDOR_NAME",
24
+ "7": "B-VENDOR_ADDRESS",
25
+ "8": "I-VENDOR_ADDRESS",
26
+ "9": "B-CUSTOMER_NAME",
27
+ "10": "I-CUSTOMER_NAME",
28
+ "11": "B-CUSTOMER_ADDRESS",
29
+ "12": "I-CUSTOMER_ADDRESS",
30
+ "13": "B-ITEM_NAME",
31
+ "14": "I-ITEM_NAME",
32
+ "15": "B-QUANTITY",
33
+ "16": "I-QUANTITY",
34
+ "17": "B-UNIT_PRICE",
35
+ "18": "I-UNIT_PRICE",
36
+ "19": "B-LINE_AMOUNT",
37
+ "20": "I-LINE_AMOUNT",
38
+ "21": "B-TOTAL_AMOUNT",
39
+ "22": "I-TOTAL_AMOUNT",
40
+ "23": "B-TAX_AMOUNT",
41
+ "24": "I-TAX_AMOUNT"
42
+ },
43
+ "initializer_range": 0.02,
44
+ "input_size": 224,
45
+ "intermediate_size": 3072,
46
+ "label2id": {
47
+ "B-CUSTOMER_ADDRESS": 11,
48
+ "B-CUSTOMER_NAME": 9,
49
+ "B-DATE": 3,
50
+ "B-INVOICE_NUMBER": 1,
51
+ "B-ITEM_NAME": 13,
52
+ "B-LINE_AMOUNT": 19,
53
+ "B-QUANTITY": 15,
54
+ "B-TAX_AMOUNT": 23,
55
+ "B-TOTAL_AMOUNT": 21,
56
+ "B-UNIT_PRICE": 17,
57
+ "B-VENDOR_ADDRESS": 7,
58
+ "B-VENDOR_NAME": 5,
59
+ "I-CUSTOMER_ADDRESS": 12,
60
+ "I-CUSTOMER_NAME": 10,
61
+ "I-DATE": 4,
62
+ "I-INVOICE_NUMBER": 2,
63
+ "I-ITEM_NAME": 14,
64
+ "I-LINE_AMOUNT": 20,
65
+ "I-QUANTITY": 16,
66
+ "I-TAX_AMOUNT": 24,
67
+ "I-TOTAL_AMOUNT": 22,
68
+ "I-UNIT_PRICE": 18,
69
+ "I-VENDOR_ADDRESS": 8,
70
+ "I-VENDOR_NAME": 6,
71
+ "O": 0
72
+ },
73
+ "layer_norm_eps": 1e-05,
74
+ "max_2d_position_embeddings": 1024,
75
+ "max_position_embeddings": 514,
76
+ "max_rel_2d_pos": 256,
77
+ "max_rel_pos": 128,
78
+ "model_type": "layoutlmv3",
79
+ "num_attention_heads": 12,
80
+ "num_channels": 3,
81
+ "num_hidden_layers": 12,
82
+ "pad_token_id": 1,
83
+ "patch_size": 16,
84
+ "rel_2d_pos_bins": 64,
85
+ "rel_pos_bins": 32,
86
+ "second_input_size": 112,
87
+ "shape_size": 128,
88
+ "text_embed": true,
89
+ "transformers_version": "5.3.0",
90
+ "type_vocab_size": 1,
91
+ "use_cache": false,
92
+ "visual_embed": true,
93
+ "vocab_size": 50265
94
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:109c06a939584814bf5d3475e6fa0284f26462c48937c65578a5761db232cfcb
3
+ size 503773476
processor_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "apply_ocr": false,
4
+ "data_format": "channels_first",
5
+ "do_normalize": true,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "image_mean": [
9
+ 0.5,
10
+ 0.5,
11
+ 0.5
12
+ ],
13
+ "image_processor_type": "LayoutLMv3ImageProcessorFast",
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "resample": 2,
20
+ "rescale_factor": 0.00392156862745098,
21
+ "size": {
22
+ "height": 224,
23
+ "width": 224
24
+ },
25
+ "tesseract_config": ""
26
+ },
27
+ "processor_class": "LayoutLMv3Processor"
28
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "apply_ocr": false,
4
+ "backend": "tokenizers",
5
+ "bos_token": "<s>",
6
+ "cls_token": "<s>",
7
+ "cls_token_box": [
8
+ 0,
9
+ 0,
10
+ 0,
11
+ 0
12
+ ],
13
+ "eos_token": "</s>",
14
+ "errors": "replace",
15
+ "is_local": false,
16
+ "mask_token": "<mask>",
17
+ "model_max_length": 512,
18
+ "only_label_first_subword": true,
19
+ "pad_token": "<pad>",
20
+ "pad_token_box": [
21
+ 0,
22
+ 0,
23
+ 0,
24
+ 0
25
+ ],
26
+ "pad_token_label": -100,
27
+ "processor_class": "LayoutLMv3Processor",
28
+ "sep_token": "</s>",
29
+ "sep_token_box": [
30
+ 0,
31
+ 0,
32
+ 0,
33
+ 0
34
+ ],
35
+ "tokenizer_class": "LayoutLMv3Tokenizer",
36
+ "unk_token": "<unk>"
37
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0703636b3e2a82e4574362732b505264a6fa78383475ce61021927f8f3ebb7d8
3
+ size 4792