layoutlmv2-finetuned-cord
Browse files- .gitignore +1 -0
- config.json +182 -0
- pytorch_model.bin +3 -0
- training_args.bin +3 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
checkpoint-*/
|
config.json
ADDED
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/layoutlmv2-base-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"LayoutLMv2ForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"convert_sync_batchnorm": true,
|
8 |
+
"coordinate_size": 128,
|
9 |
+
"detectron2_config_args": {
|
10 |
+
"MODEL.ANCHOR_GENERATOR.SIZES": [
|
11 |
+
[
|
12 |
+
32
|
13 |
+
],
|
14 |
+
[
|
15 |
+
64
|
16 |
+
],
|
17 |
+
[
|
18 |
+
128
|
19 |
+
],
|
20 |
+
[
|
21 |
+
256
|
22 |
+
],
|
23 |
+
[
|
24 |
+
512
|
25 |
+
]
|
26 |
+
],
|
27 |
+
"MODEL.BACKBONE.NAME": "build_resnet_fpn_backbone",
|
28 |
+
"MODEL.FPN.IN_FEATURES": [
|
29 |
+
"res2",
|
30 |
+
"res3",
|
31 |
+
"res4",
|
32 |
+
"res5"
|
33 |
+
],
|
34 |
+
"MODEL.MASK_ON": true,
|
35 |
+
"MODEL.PIXEL_STD": [
|
36 |
+
57.375,
|
37 |
+
57.12,
|
38 |
+
58.395
|
39 |
+
],
|
40 |
+
"MODEL.POST_NMS_TOPK_TEST": 1000,
|
41 |
+
"MODEL.RESNETS.ASPECT_RATIOS": [
|
42 |
+
[
|
43 |
+
0.5,
|
44 |
+
1.0,
|
45 |
+
2.0
|
46 |
+
]
|
47 |
+
],
|
48 |
+
"MODEL.RESNETS.DEPTH": 101,
|
49 |
+
"MODEL.RESNETS.NUM_GROUPS": 32,
|
50 |
+
"MODEL.RESNETS.OUT_FEATURES": [
|
51 |
+
"res2",
|
52 |
+
"res3",
|
53 |
+
"res4",
|
54 |
+
"res5"
|
55 |
+
],
|
56 |
+
"MODEL.RESNETS.SIZES": [
|
57 |
+
[
|
58 |
+
32
|
59 |
+
],
|
60 |
+
[
|
61 |
+
64
|
62 |
+
],
|
63 |
+
[
|
64 |
+
128
|
65 |
+
],
|
66 |
+
[
|
67 |
+
256
|
68 |
+
],
|
69 |
+
[
|
70 |
+
512
|
71 |
+
]
|
72 |
+
],
|
73 |
+
"MODEL.RESNETS.STRIDE_IN_1X1": false,
|
74 |
+
"MODEL.RESNETS.WIDTH_PER_GROUP": 8,
|
75 |
+
"MODEL.ROI_BOX_HEAD.NAME": "FastRCNNConvFCHead",
|
76 |
+
"MODEL.ROI_BOX_HEAD.NUM_FC": 2,
|
77 |
+
"MODEL.ROI_BOX_HEAD.POOLER_RESOLUTION": 14,
|
78 |
+
"MODEL.ROI_HEADS.IN_FEATURES": [
|
79 |
+
"p2",
|
80 |
+
"p3",
|
81 |
+
"p4",
|
82 |
+
"p5"
|
83 |
+
],
|
84 |
+
"MODEL.ROI_HEADS.NAME": "StandardROIHeads",
|
85 |
+
"MODEL.ROI_HEADS.NUM_CLASSES": 5,
|
86 |
+
"MODEL.ROI_MASK_HEAD.NAME": "MaskRCNNConvUpsampleHead",
|
87 |
+
"MODEL.ROI_MASK_HEAD.NUM_CONV": 4,
|
88 |
+
"MODEL.ROI_MASK_HEAD.POOLER_RESOLUTION": 7,
|
89 |
+
"MODEL.RPN.IN_FEATURES": [
|
90 |
+
"p2",
|
91 |
+
"p3",
|
92 |
+
"p4",
|
93 |
+
"p5",
|
94 |
+
"p6"
|
95 |
+
],
|
96 |
+
"MODEL.RPN.POST_NMS_TOPK_TRAIN": 1000,
|
97 |
+
"MODEL.RPN.PRE_NMS_TOPK_TEST": 1000,
|
98 |
+
"MODEL.RPN.PRE_NMS_TOPK_TRAIN": 2000
|
99 |
+
},
|
100 |
+
"fast_qkv": true,
|
101 |
+
"gradient_checkpointing": false,
|
102 |
+
"has_relative_attention_bias": true,
|
103 |
+
"has_spatial_attention_bias": true,
|
104 |
+
"has_visual_segment_embedding": false,
|
105 |
+
"hidden_act": "gelu",
|
106 |
+
"hidden_dropout_prob": 0.1,
|
107 |
+
"hidden_size": 768,
|
108 |
+
"id2label": {
|
109 |
+
"0": "O",
|
110 |
+
"1": "I-menu.cnt",
|
111 |
+
"2": "I-menu.discountprice",
|
112 |
+
"3": "I-menu.nm",
|
113 |
+
"4": "I-menu.num",
|
114 |
+
"5": "I-menu.price",
|
115 |
+
"6": "I-menu.sub_cnt",
|
116 |
+
"7": "I-menu.sub_nm",
|
117 |
+
"8": "I-menu.sub_price",
|
118 |
+
"9": "I-menu.unitprice",
|
119 |
+
"10": "I-sub_total.discount_price",
|
120 |
+
"11": "I-sub_total.etc",
|
121 |
+
"12": "I-sub_total.service_price",
|
122 |
+
"13": "I-sub_total.subtotal_price",
|
123 |
+
"14": "I-sub_total.tax_price",
|
124 |
+
"15": "I-total.cashprice",
|
125 |
+
"16": "I-total.changeprice",
|
126 |
+
"17": "I-total.creditcardprice",
|
127 |
+
"18": "I-total.emoneyprice",
|
128 |
+
"19": "I-total.menuqty_cnt",
|
129 |
+
"20": "I-total.menutype_cnt",
|
130 |
+
"21": "I-total.total_etc",
|
131 |
+
"22": "I-total.total_price"
|
132 |
+
},
|
133 |
+
"image_feature_pool_shape": [
|
134 |
+
7,
|
135 |
+
7,
|
136 |
+
256
|
137 |
+
],
|
138 |
+
"initializer_range": 0.02,
|
139 |
+
"intermediate_size": 3072,
|
140 |
+
"label2id": {
|
141 |
+
"I-menu.cnt": 1,
|
142 |
+
"I-menu.discountprice": 2,
|
143 |
+
"I-menu.nm": 3,
|
144 |
+
"I-menu.num": 4,
|
145 |
+
"I-menu.price": 5,
|
146 |
+
"I-menu.sub_cnt": 6,
|
147 |
+
"I-menu.sub_nm": 7,
|
148 |
+
"I-menu.sub_price": 8,
|
149 |
+
"I-menu.unitprice": 9,
|
150 |
+
"I-sub_total.discount_price": 10,
|
151 |
+
"I-sub_total.etc": 11,
|
152 |
+
"I-sub_total.service_price": 12,
|
153 |
+
"I-sub_total.subtotal_price": 13,
|
154 |
+
"I-sub_total.tax_price": 14,
|
155 |
+
"I-total.cashprice": 15,
|
156 |
+
"I-total.changeprice": 16,
|
157 |
+
"I-total.creditcardprice": 17,
|
158 |
+
"I-total.emoneyprice": 18,
|
159 |
+
"I-total.menuqty_cnt": 19,
|
160 |
+
"I-total.menutype_cnt": 20,
|
161 |
+
"I-total.total_etc": 21,
|
162 |
+
"I-total.total_price": 22,
|
163 |
+
"O": 0
|
164 |
+
},
|
165 |
+
"layer_norm_eps": 1e-12,
|
166 |
+
"max_2d_position_embeddings": 1024,
|
167 |
+
"max_position_embeddings": 512,
|
168 |
+
"max_rel_2d_pos": 256,
|
169 |
+
"max_rel_pos": 128,
|
170 |
+
"model_type": "layoutlmv2",
|
171 |
+
"num_attention_heads": 12,
|
172 |
+
"num_hidden_layers": 12,
|
173 |
+
"output_past": true,
|
174 |
+
"pad_token_id": 0,
|
175 |
+
"rel_2d_pos_bins": 64,
|
176 |
+
"rel_pos_bins": 32,
|
177 |
+
"shape_size": 128,
|
178 |
+
"torch_dtype": "float32",
|
179 |
+
"transformers_version": "4.18.0",
|
180 |
+
"type_vocab_size": 2,
|
181 |
+
"vocab_size": 30522
|
182 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:21f592115d353293389434a788bf623b7179ed0dffa416b73b9270dcaad1e5f2
|
3 |
+
size 802265387
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e7c19863be9bbc11f9329958e73031a85b35d64780efa40e78e0780fb23e7edd
|
3 |
+
size 3119
|