Upload LayoutLMv3ForTokenClassification
Browse files- config.json +74 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "O",
|
18 |
+
"1": "B-daily_value",
|
19 |
+
"2": "B-header",
|
20 |
+
"3": "B-header_value",
|
21 |
+
"4": "B-nutrient",
|
22 |
+
"5": "B-nutrient2",
|
23 |
+
"6": "B-nutrient_value2",
|
24 |
+
"7": "B-other",
|
25 |
+
"8": "I-daily_value",
|
26 |
+
"9": "I-header",
|
27 |
+
"10": "I-header_value",
|
28 |
+
"11": "I-nutrient",
|
29 |
+
"12": "I-nutrient2",
|
30 |
+
"13": "I-nutrient_value2",
|
31 |
+
"14": "I-other"
|
32 |
+
},
|
33 |
+
"initializer_range": 0.02,
|
34 |
+
"input_size": 224,
|
35 |
+
"intermediate_size": 3072,
|
36 |
+
"label2id": {
|
37 |
+
"B-daily_value": 1,
|
38 |
+
"B-header": 2,
|
39 |
+
"B-header_value": 3,
|
40 |
+
"B-nutrient": 4,
|
41 |
+
"B-nutrient2": 5,
|
42 |
+
"B-nutrient_value2": 6,
|
43 |
+
"B-other": 7,
|
44 |
+
"I-daily_value": 8,
|
45 |
+
"I-header": 9,
|
46 |
+
"I-header_value": 10,
|
47 |
+
"I-nutrient": 11,
|
48 |
+
"I-nutrient2": 12,
|
49 |
+
"I-nutrient_value2": 13,
|
50 |
+
"I-other": 14,
|
51 |
+
"O": 0
|
52 |
+
},
|
53 |
+
"layer_norm_eps": 1e-05,
|
54 |
+
"max_2d_position_embeddings": 1024,
|
55 |
+
"max_position_embeddings": 514,
|
56 |
+
"max_rel_2d_pos": 256,
|
57 |
+
"max_rel_pos": 128,
|
58 |
+
"model_type": "layoutlmv3",
|
59 |
+
"num_attention_heads": 12,
|
60 |
+
"num_channels": 3,
|
61 |
+
"num_hidden_layers": 12,
|
62 |
+
"pad_token_id": 1,
|
63 |
+
"patch_size": 16,
|
64 |
+
"rel_2d_pos_bins": 64,
|
65 |
+
"rel_pos_bins": 32,
|
66 |
+
"second_input_size": 112,
|
67 |
+
"shape_size": 128,
|
68 |
+
"text_embed": true,
|
69 |
+
"torch_dtype": "float32",
|
70 |
+
"transformers_version": "4.26.1",
|
71 |
+
"type_vocab_size": 1,
|
72 |
+
"visual_embed": true,
|
73 |
+
"vocab_size": 50265
|
74 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:742b38b500ece2b430f7efbd172138cbcc7a5c595197323054123da120d12796
|
3 |
+
size 503796953
|