raphael0202
commited on
Commit
•
552d4df
1
Parent(s):
30949cf
Upload LayoutLMv3ForTokenClassification
Browse files- config.json +187 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "ds-v5-large",
|
3 |
+
"architectures": [
|
4 |
+
"LayoutLMv3ForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"coordinate_size": 171,
|
10 |
+
"eos_token_id": 2,
|
11 |
+
"finetuning_task": "ner",
|
12 |
+
"has_relative_attention_bias": true,
|
13 |
+
"has_spatial_attention_bias": true,
|
14 |
+
"hidden_act": "gelu",
|
15 |
+
"hidden_dropout_prob": 0.1,
|
16 |
+
"hidden_size": 1024,
|
17 |
+
"id2label": {
|
18 |
+
"0": "O",
|
19 |
+
"1": "B-ENERGY_KJ_SERVING",
|
20 |
+
"2": "I-ENERGY_KJ_SERVING",
|
21 |
+
"3": "B-CARBOHYDRATES_100G",
|
22 |
+
"4": "I-CARBOHYDRATES_100G",
|
23 |
+
"5": "B-CHOLESTEROL_SERVING",
|
24 |
+
"6": "I-CHOLESTEROL_SERVING",
|
25 |
+
"7": "B-ENERGY_KCAL_100G",
|
26 |
+
"8": "I-ENERGY_KCAL_100G",
|
27 |
+
"9": "B-SALT_SERVING",
|
28 |
+
"10": "I-SALT_SERVING",
|
29 |
+
"11": "B-SALT_100G",
|
30 |
+
"12": "I-SALT_100G",
|
31 |
+
"13": "B-SERVING_SIZE",
|
32 |
+
"14": "I-SERVING_SIZE",
|
33 |
+
"15": "B-CALCIUM_100G",
|
34 |
+
"16": "I-CALCIUM_100G",
|
35 |
+
"17": "B-SODIUM_SERVING",
|
36 |
+
"18": "I-SODIUM_SERVING",
|
37 |
+
"19": "B-FIBER_100G",
|
38 |
+
"20": "I-FIBER_100G",
|
39 |
+
"21": "B-IRON_SERVING",
|
40 |
+
"22": "I-IRON_SERVING",
|
41 |
+
"23": "B-IRON_100G",
|
42 |
+
"24": "I-IRON_100G",
|
43 |
+
"25": "B-POTASSIUM_100G",
|
44 |
+
"26": "I-POTASSIUM_100G",
|
45 |
+
"27": "B-CALCIUM_SERVING",
|
46 |
+
"28": "I-CALCIUM_SERVING",
|
47 |
+
"29": "B-TRANS_FAT_100G",
|
48 |
+
"30": "I-TRANS_FAT_100G",
|
49 |
+
"31": "B-SATURATED_FAT_100G",
|
50 |
+
"32": "I-SATURATED_FAT_100G",
|
51 |
+
"33": "B-PROTEINS_SERVING",
|
52 |
+
"34": "I-PROTEINS_SERVING",
|
53 |
+
"35": "B-SATURATED_FAT_SERVING",
|
54 |
+
"36": "I-SATURATED_FAT_SERVING",
|
55 |
+
"37": "B-VITAMIN_D_100G",
|
56 |
+
"38": "I-VITAMIN_D_100G",
|
57 |
+
"39": "B-ENERGY_KJ_100G",
|
58 |
+
"40": "I-ENERGY_KJ_100G",
|
59 |
+
"41": "B-FAT_100G",
|
60 |
+
"42": "I-FAT_100G",
|
61 |
+
"43": "B-PROTEINS_100G",
|
62 |
+
"44": "I-PROTEINS_100G",
|
63 |
+
"45": "B-VITAMIN_D_SERVING",
|
64 |
+
"46": "I-VITAMIN_D_SERVING",
|
65 |
+
"47": "B-ADDED_SUGARS_SERVING",
|
66 |
+
"48": "I-ADDED_SUGARS_SERVING",
|
67 |
+
"49": "B-CHOLESTEROL_100G",
|
68 |
+
"50": "I-CHOLESTEROL_100G",
|
69 |
+
"51": "B-SUGARS_100G",
|
70 |
+
"52": "I-SUGARS_100G",
|
71 |
+
"53": "B-CARBOHYDRATES_SERVING",
|
72 |
+
"54": "I-CARBOHYDRATES_SERVING",
|
73 |
+
"55": "B-ADDED_SUGARS_100G",
|
74 |
+
"56": "I-ADDED_SUGARS_100G",
|
75 |
+
"57": "B-SODIUM_100G",
|
76 |
+
"58": "I-SODIUM_100G",
|
77 |
+
"59": "B-FIBER_SERVING",
|
78 |
+
"60": "I-FIBER_SERVING",
|
79 |
+
"61": "B-SUGARS_SERVING",
|
80 |
+
"62": "I-SUGARS_SERVING",
|
81 |
+
"63": "B-ENERGY_KCAL_SERVING",
|
82 |
+
"64": "I-ENERGY_KCAL_SERVING",
|
83 |
+
"65": "B-FAT_SERVING",
|
84 |
+
"66": "I-FAT_SERVING",
|
85 |
+
"67": "B-TRANS_FAT_SERVING",
|
86 |
+
"68": "I-TRANS_FAT_SERVING",
|
87 |
+
"69": "B-POTASSIUM_SERVING",
|
88 |
+
"70": "I-POTASSIUM_SERVING"
|
89 |
+
},
|
90 |
+
"initializer_range": 0.02,
|
91 |
+
"input_size": 224,
|
92 |
+
"intermediate_size": 4096,
|
93 |
+
"label2id": {
|
94 |
+
"B-ADDED_SUGARS_100G": 55,
|
95 |
+
"B-ADDED_SUGARS_SERVING": 47,
|
96 |
+
"B-CALCIUM_100G": 15,
|
97 |
+
"B-CALCIUM_SERVING": 27,
|
98 |
+
"B-CARBOHYDRATES_100G": 3,
|
99 |
+
"B-CARBOHYDRATES_SERVING": 53,
|
100 |
+
"B-CHOLESTEROL_100G": 49,
|
101 |
+
"B-CHOLESTEROL_SERVING": 5,
|
102 |
+
"B-ENERGY_KCAL_100G": 7,
|
103 |
+
"B-ENERGY_KCAL_SERVING": 63,
|
104 |
+
"B-ENERGY_KJ_100G": 39,
|
105 |
+
"B-ENERGY_KJ_SERVING": 1,
|
106 |
+
"B-FAT_100G": 41,
|
107 |
+
"B-FAT_SERVING": 65,
|
108 |
+
"B-FIBER_100G": 19,
|
109 |
+
"B-FIBER_SERVING": 59,
|
110 |
+
"B-IRON_100G": 23,
|
111 |
+
"B-IRON_SERVING": 21,
|
112 |
+
"B-POTASSIUM_100G": 25,
|
113 |
+
"B-POTASSIUM_SERVING": 69,
|
114 |
+
"B-PROTEINS_100G": 43,
|
115 |
+
"B-PROTEINS_SERVING": 33,
|
116 |
+
"B-SALT_100G": 11,
|
117 |
+
"B-SALT_SERVING": 9,
|
118 |
+
"B-SATURATED_FAT_100G": 31,
|
119 |
+
"B-SATURATED_FAT_SERVING": 35,
|
120 |
+
"B-SERVING_SIZE": 13,
|
121 |
+
"B-SODIUM_100G": 57,
|
122 |
+
"B-SODIUM_SERVING": 17,
|
123 |
+
"B-SUGARS_100G": 51,
|
124 |
+
"B-SUGARS_SERVING": 61,
|
125 |
+
"B-TRANS_FAT_100G": 29,
|
126 |
+
"B-TRANS_FAT_SERVING": 67,
|
127 |
+
"B-VITAMIN_D_100G": 37,
|
128 |
+
"B-VITAMIN_D_SERVING": 45,
|
129 |
+
"I-ADDED_SUGARS_100G": 56,
|
130 |
+
"I-ADDED_SUGARS_SERVING": 48,
|
131 |
+
"I-CALCIUM_100G": 16,
|
132 |
+
"I-CALCIUM_SERVING": 28,
|
133 |
+
"I-CARBOHYDRATES_100G": 4,
|
134 |
+
"I-CARBOHYDRATES_SERVING": 54,
|
135 |
+
"I-CHOLESTEROL_100G": 50,
|
136 |
+
"I-CHOLESTEROL_SERVING": 6,
|
137 |
+
"I-ENERGY_KCAL_100G": 8,
|
138 |
+
"I-ENERGY_KCAL_SERVING": 64,
|
139 |
+
"I-ENERGY_KJ_100G": 40,
|
140 |
+
"I-ENERGY_KJ_SERVING": 2,
|
141 |
+
"I-FAT_100G": 42,
|
142 |
+
"I-FAT_SERVING": 66,
|
143 |
+
"I-FIBER_100G": 20,
|
144 |
+
"I-FIBER_SERVING": 60,
|
145 |
+
"I-IRON_100G": 24,
|
146 |
+
"I-IRON_SERVING": 22,
|
147 |
+
"I-POTASSIUM_100G": 26,
|
148 |
+
"I-POTASSIUM_SERVING": 70,
|
149 |
+
"I-PROTEINS_100G": 44,
|
150 |
+
"I-PROTEINS_SERVING": 34,
|
151 |
+
"I-SALT_100G": 12,
|
152 |
+
"I-SALT_SERVING": 10,
|
153 |
+
"I-SATURATED_FAT_100G": 32,
|
154 |
+
"I-SATURATED_FAT_SERVING": 36,
|
155 |
+
"I-SERVING_SIZE": 14,
|
156 |
+
"I-SODIUM_100G": 58,
|
157 |
+
"I-SODIUM_SERVING": 18,
|
158 |
+
"I-SUGARS_100G": 52,
|
159 |
+
"I-SUGARS_SERVING": 62,
|
160 |
+
"I-TRANS_FAT_100G": 30,
|
161 |
+
"I-TRANS_FAT_SERVING": 68,
|
162 |
+
"I-VITAMIN_D_100G": 38,
|
163 |
+
"I-VITAMIN_D_SERVING": 46,
|
164 |
+
"O": 0
|
165 |
+
},
|
166 |
+
"layer_norm_eps": 1e-05,
|
167 |
+
"max_2d_position_embeddings": 1024,
|
168 |
+
"max_position_embeddings": 514,
|
169 |
+
"max_rel_2d_pos": 256,
|
170 |
+
"max_rel_pos": 128,
|
171 |
+
"model_type": "layoutlmv3",
|
172 |
+
"num_attention_heads": 16,
|
173 |
+
"num_channels": 3,
|
174 |
+
"num_hidden_layers": 24,
|
175 |
+
"pad_token_id": 1,
|
176 |
+
"patch_size": 16,
|
177 |
+
"rel_2d_pos_bins": 64,
|
178 |
+
"rel_pos_bins": 32,
|
179 |
+
"second_input_size": 112,
|
180 |
+
"shape_size": 170,
|
181 |
+
"text_embed": true,
|
182 |
+
"torch_dtype": "float32",
|
183 |
+
"transformers_version": "4.40.2",
|
184 |
+
"type_vocab_size": 1,
|
185 |
+
"visual_embed": true,
|
186 |
+
"vocab_size": 50265
|
187 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e437c1c4fcd829b7b6854461ee6d97fac1a90b482cd2afd4048c39e5784b13c5
|
3 |
+
size 1428562028
|