Upload LayoutLMv3ForTokenClassification
Browse files- config.json +90 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "./layoutlmv3",
|
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": "B-Chapter",
|
18 |
+
"1": "I-Chapter",
|
19 |
+
"2": "B-Section",
|
20 |
+
"3": "I-Section",
|
21 |
+
"4": "B-Paragraph",
|
22 |
+
"5": "I-Paragraph",
|
23 |
+
"6": "B-Quote",
|
24 |
+
"7": "I-Quote",
|
25 |
+
"8": "B-Item",
|
26 |
+
"9": "I-Item",
|
27 |
+
"10": "B-Figure",
|
28 |
+
"11": "I-Figure",
|
29 |
+
"12": "B-P-continue",
|
30 |
+
"13": "I-P-continue",
|
31 |
+
"14": "B-Caption",
|
32 |
+
"15": "I-Caption",
|
33 |
+
"16": "B-Quote-con",
|
34 |
+
"17": "I-Quote-con",
|
35 |
+
"18": "B-Footnote",
|
36 |
+
"19": "I-Footnote",
|
37 |
+
"20": "B-Table",
|
38 |
+
"21": "I-Table",
|
39 |
+
"22": "O"
|
40 |
+
},
|
41 |
+
"initializer_range": 0.02,
|
42 |
+
"input_size": 224,
|
43 |
+
"intermediate_size": 3072,
|
44 |
+
"label2id": {
|
45 |
+
"B-Caption": 14,
|
46 |
+
"B-Chapter": 0,
|
47 |
+
"B-Figure": 10,
|
48 |
+
"B-Footnote": 18,
|
49 |
+
"B-Item": 8,
|
50 |
+
"B-P-continue": 12,
|
51 |
+
"B-Paragraph": 4,
|
52 |
+
"B-Quote": 6,
|
53 |
+
"B-Quote-con": 16,
|
54 |
+
"B-Section": 2,
|
55 |
+
"B-Table": 20,
|
56 |
+
"I-Caption": 15,
|
57 |
+
"I-Chapter": 1,
|
58 |
+
"I-Figure": 11,
|
59 |
+
"I-Footnote": 19,
|
60 |
+
"I-Item": 9,
|
61 |
+
"I-P-continue": 13,
|
62 |
+
"I-Paragraph": 5,
|
63 |
+
"I-Quote": 7,
|
64 |
+
"I-Quote-con": 17,
|
65 |
+
"I-Section": 3,
|
66 |
+
"I-Table": 21,
|
67 |
+
"O": 22
|
68 |
+
},
|
69 |
+
"layer_norm_eps": 1e-05,
|
70 |
+
"max_2d_position_embeddings": 1024,
|
71 |
+
"max_position_embeddings": 514,
|
72 |
+
"max_rel_2d_pos": 256,
|
73 |
+
"max_rel_pos": 128,
|
74 |
+
"model_type": "layoutlmv3",
|
75 |
+
"num_attention_heads": 12,
|
76 |
+
"num_channels": 3,
|
77 |
+
"num_hidden_layers": 12,
|
78 |
+
"pad_token_id": 1,
|
79 |
+
"patch_size": 16,
|
80 |
+
"rel_2d_pos_bins": 64,
|
81 |
+
"rel_pos_bins": 32,
|
82 |
+
"second_input_size": 112,
|
83 |
+
"shape_size": 128,
|
84 |
+
"text_embed": true,
|
85 |
+
"torch_dtype": "float32",
|
86 |
+
"transformers_version": "4.29.2",
|
87 |
+
"type_vocab_size": 1,
|
88 |
+
"visual_embed": true,
|
89 |
+
"vocab_size": 50265
|
90 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3764fad45438f72e7e8382b721fb8ceae2c27bb7ce0ea3fcb75d2d510d49b589
|
3 |
+
size 503817009
|