Upload LayoutLMv3ForTokenClassification
Browse files- config.json +92 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "Authors",
|
18 |
+
"1": "Bibliography",
|
19 |
+
"2": "Contact",
|
20 |
+
"3": "Copyright",
|
21 |
+
"4": "FigCaption",
|
22 |
+
"5": "FigReference",
|
23 |
+
"6": "FigSection",
|
24 |
+
"7": "FigText",
|
25 |
+
"8": "FigTitle",
|
26 |
+
"9": "Footer",
|
27 |
+
"10": "FooterReportTitle",
|
28 |
+
"11": "ListItem",
|
29 |
+
"12": "Other",
|
30 |
+
"13": "PageNumber",
|
31 |
+
"14": "PubDate",
|
32 |
+
"15": "Publisher",
|
33 |
+
"16": "ReportTitle",
|
34 |
+
"17": "SectionTitle",
|
35 |
+
"18": "SourceBlock",
|
36 |
+
"19": "SubHeading",
|
37 |
+
"20": "Subheading/TextBlock",
|
38 |
+
"21": "TOCBlock",
|
39 |
+
"22": "TableTitle",
|
40 |
+
"23": "TextBlock"
|
41 |
+
},
|
42 |
+
"initializer_range": 0.02,
|
43 |
+
"input_size": 224,
|
44 |
+
"intermediate_size": 3072,
|
45 |
+
"label2id": {
|
46 |
+
"Authors": 0,
|
47 |
+
"Bibliography": 1,
|
48 |
+
"Contact": 2,
|
49 |
+
"Copyright": 3,
|
50 |
+
"FigCaption": 4,
|
51 |
+
"FigReference": 5,
|
52 |
+
"FigSection": 6,
|
53 |
+
"FigText": 7,
|
54 |
+
"FigTitle": 8,
|
55 |
+
"Footer": 9,
|
56 |
+
"FooterReportTitle": 10,
|
57 |
+
"ListItem": 11,
|
58 |
+
"Other": 12,
|
59 |
+
"PageNumber": 13,
|
60 |
+
"PubDate": 14,
|
61 |
+
"Publisher": 15,
|
62 |
+
"ReportTitle": 16,
|
63 |
+
"SectionTitle": 17,
|
64 |
+
"SourceBlock": 18,
|
65 |
+
"SubHeading": 19,
|
66 |
+
"Subheading/TextBlock": 20,
|
67 |
+
"TOCBlock": 21,
|
68 |
+
"TableTitle": 22,
|
69 |
+
"TextBlock": 23
|
70 |
+
},
|
71 |
+
"layer_norm_eps": 1e-05,
|
72 |
+
"max_2d_position_embeddings": 1024,
|
73 |
+
"max_position_embeddings": 514,
|
74 |
+
"max_rel_2d_pos": 256,
|
75 |
+
"max_rel_pos": 128,
|
76 |
+
"model_type": "layoutlmv3",
|
77 |
+
"num_attention_heads": 12,
|
78 |
+
"num_channels": 3,
|
79 |
+
"num_hidden_layers": 12,
|
80 |
+
"pad_token_id": 1,
|
81 |
+
"patch_size": 16,
|
82 |
+
"rel_2d_pos_bins": 64,
|
83 |
+
"rel_pos_bins": 32,
|
84 |
+
"second_input_size": 112,
|
85 |
+
"shape_size": 128,
|
86 |
+
"text_embed": true,
|
87 |
+
"torch_dtype": "float32",
|
88 |
+
"transformers_version": "4.22.2",
|
89 |
+
"type_vocab_size": 1,
|
90 |
+
"visual_embed": true,
|
91 |
+
"vocab_size": 50265
|
92 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b5316ed6bdc3c4668049019bce21e78e58e1410f95cc0d6ac685c8e488b88fb5
|
3 |
+
size 503821199
|