File size: 3,313 Bytes
63c8c26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
  "_name_or_path": "C:\\Users\\Skander\\Desktop\\invoice-recognizer\\model_files",
  "architectures": [
    "LayoutLMv3ForTokenClassification"
  ],
  "attention_probs_dropout_prob": 0.1,
  "bos_token_id": 0,
  "classifier_dropout": null,
  "coordinate_size": 128,
  "eos_token_id": 2,
  "has_relative_attention_bias": true,
  "has_spatial_attention_bias": true,
  "hidden_act": "gelu",
  "hidden_dropout_prob": 0.1,
  "hidden_size": 768,
  "id2label": {
    "0": "B-DATE_LABEL",
    "1": "B-FACT_LABEL",
    "2": "B-NUMERO_FACTURE",
    "3": "B-PRIX_HT",
    "4": "B-PRIX_HT_LABEL",
    "5": "B-PRIX_TTC",
    "6": "B-PRIX_TTC_LABEL",
    "7": "B-TIMBRE",
    "8": "B-TIMBRE_LABEL",
    "9": "B-TVA",
    "10": "B-TVA_LABEL",
    "11": "E-DATE_LABEL",
    "12": "E-FACT_LABEL",
    "13": "E-NUMERO_FACTURE",
    "14": "E-PRIX_HT",
    "15": "E-PRIX_HT_LABEL",
    "16": "E-PRIX_TTC",
    "17": "E-PRIX_TTC_LABEL",
    "18": "E-TIMBRE",
    "19": "E-TIMBRE_LABEL",
    "20": "E-TVA",
    "21": "E-TVA_LABEL",
    "22": "I-DATE_LABEL",
    "23": "I-FACT_LABEL",
    "24": "I-NUMERO_FACTURE",
    "25": "I-PRIX_HT_LABEL",
    "26": "I-PRIX_TTC",
    "27": "I-PRIX_TTC_LABEL",
    "28": "I-TIMBRE_LABEL",
    "29": "I-TVA_LABEL",
    "30": "O",
    "31": "S-DATE",
    "32": "S-DATE_LABEL",
    "33": "S-FACT_LABEL",
    "34": "S-NUMERO_FACTURE",
    "35": "S-PRIX_HT",
    "36": "S-PRIX_HT_LABEL",
    "37": "S-PRIX_TTC",
    "38": "S-PRIX_TTC_LABEL",
    "39": "S-TIMBRE",
    "40": "S-TIMBRE_LABEL",
    "41": "S-TVA",
    "42": "S-TVA_LABEL",
    "43": "B-DATE",
    "44": "E-DATE",
    "45": "I-DATE"
  },
  "initializer_range": 0.02,
  "input_size": 224,
  "intermediate_size": 3072,
  "label2id": {
    "B-DATE": 43,
    "B-DATE_LABEL": 0,
    "B-FACT_LABEL": 1,
    "B-NUMERO_FACTURE": 2,
    "B-PRIX_HT": 3,
    "B-PRIX_HT_LABEL": 4,
    "B-PRIX_TTC": 5,
    "B-PRIX_TTC_LABEL": 6,
    "B-TIMBRE": 7,
    "B-TIMBRE_LABEL": 8,
    "B-TVA": 9,
    "B-TVA_LABEL": 10,
    "E-DATE": 44,
    "E-DATE_LABEL": 11,
    "E-FACT_LABEL": 12,
    "E-NUMERO_FACTURE": 13,
    "E-PRIX_HT": 14,
    "E-PRIX_HT_LABEL": 15,
    "E-PRIX_TTC": 16,
    "E-PRIX_TTC_LABEL": 17,
    "E-TIMBRE": 18,
    "E-TIMBRE_LABEL": 19,
    "E-TVA": 20,
    "E-TVA_LABEL": 21,
    "I-DATE": 45,
    "I-DATE_LABEL": 22,
    "I-FACT_LABEL": 23,
    "I-NUMERO_FACTURE": 24,
    "I-PRIX_HT_LABEL": 25,
    "I-PRIX_TTC": 26,
    "I-PRIX_TTC_LABEL": 27,
    "I-TIMBRE_LABEL": 28,
    "I-TVA_LABEL": 29,
    "O": 30,
    "S-DATE": 31,
    "S-DATE_LABEL": 32,
    "S-FACT_LABEL": 33,
    "S-NUMERO_FACTURE": 34,
    "S-PRIX_HT": 35,
    "S-PRIX_HT_LABEL": 36,
    "S-PRIX_TTC": 37,
    "S-PRIX_TTC_LABEL": 38,
    "S-TIMBRE": 39,
    "S-TIMBRE_LABEL": 40,
    "S-TVA": 41,
    "S-TVA_LABEL": 42
  },
  "layer_norm_eps": 1e-05,
  "max_2d_position_embeddings": 1024,
  "max_position_embeddings": 514,
  "max_rel_2d_pos": 256,
  "max_rel_pos": 128,
  "model_type": "layoutlmv3",
  "num_attention_heads": 12,
  "num_channels": 3,
  "num_hidden_layers": 12,
  "pad_token_id": 1,
  "patch_size": 16,
  "rel_2d_pos_bins": 64,
  "rel_pos_bins": 32,
  "second_input_size": 112,
  "shape_size": 128,
  "text_embed": true,
  "torch_dtype": "float32",
  "transformers_version": "4.26.1",
  "type_vocab_size": 1,
  "visual_embed": true,
  "vocab_size": 50265
}