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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_commit_hash": null,
|
3 |
+
"architectures": [
|
4 |
+
"UperNetForSemanticSegmentation"
|
5 |
+
],
|
6 |
+
"auxiliary_channels": 256,
|
7 |
+
"auxiliary_concat_input": false,
|
8 |
+
"auxiliary_in_channels": 384,
|
9 |
+
"auxiliary_loss_weight": 0.4,
|
10 |
+
"auxiliary_num_convs": 1,
|
11 |
+
"backbone_config": {
|
12 |
+
"_name_or_path": "",
|
13 |
+
"add_cross_attention": false,
|
14 |
+
"architectures": null,
|
15 |
+
"attention_probs_dropout_prob": 0.0,
|
16 |
+
"bad_words_ids": null,
|
17 |
+
"begin_suppress_tokens": null,
|
18 |
+
"bos_token_id": null,
|
19 |
+
"chunk_size_feed_forward": 0,
|
20 |
+
"cross_attention_hidden_size": null,
|
21 |
+
"decoder_start_token_id": null,
|
22 |
+
"depths": [
|
23 |
+
2,
|
24 |
+
2,
|
25 |
+
18,
|
26 |
+
2
|
27 |
+
],
|
28 |
+
"diversity_penalty": 0.0,
|
29 |
+
"do_sample": false,
|
30 |
+
"drop_path_rate": 0.1,
|
31 |
+
"early_stopping": false,
|
32 |
+
"embed_dim": 96,
|
33 |
+
"encoder_no_repeat_ngram_size": 0,
|
34 |
+
"encoder_stride": 32,
|
35 |
+
"eos_token_id": null,
|
36 |
+
"exponential_decay_length_penalty": null,
|
37 |
+
"finetuning_task": null,
|
38 |
+
"forced_bos_token_id": null,
|
39 |
+
"forced_eos_token_id": null,
|
40 |
+
"hidden_act": "gelu",
|
41 |
+
"hidden_dropout_prob": 0.0,
|
42 |
+
"hidden_size": 768,
|
43 |
+
"id2label": {
|
44 |
+
"0": "LABEL_0",
|
45 |
+
"1": "LABEL_1"
|
46 |
+
},
|
47 |
+
"image_size": 224,
|
48 |
+
"initializer_range": 0.02,
|
49 |
+
"is_decoder": false,
|
50 |
+
"is_encoder_decoder": false,
|
51 |
+
"label2id": {
|
52 |
+
"LABEL_0": 0,
|
53 |
+
"LABEL_1": 1
|
54 |
+
},
|
55 |
+
"layer_norm_eps": 1e-05,
|
56 |
+
"length_penalty": 1.0,
|
57 |
+
"max_length": 20,
|
58 |
+
"min_length": 0,
|
59 |
+
"mlp_ratio": 4.0,
|
60 |
+
"model_type": "swin",
|
61 |
+
"no_repeat_ngram_size": 0,
|
62 |
+
"num_beam_groups": 1,
|
63 |
+
"num_beams": 1,
|
64 |
+
"num_channels": 3,
|
65 |
+
"num_heads": [
|
66 |
+
3,
|
67 |
+
6,
|
68 |
+
12,
|
69 |
+
24
|
70 |
+
],
|
71 |
+
"num_layers": 4,
|
72 |
+
"num_return_sequences": 1,
|
73 |
+
"out_features": [
|
74 |
+
"stage1",
|
75 |
+
"stage2",
|
76 |
+
"stage3",
|
77 |
+
"stage4"
|
78 |
+
],
|
79 |
+
"out_indices": [
|
80 |
+
1,
|
81 |
+
2,
|
82 |
+
3,
|
83 |
+
4
|
84 |
+
],
|
85 |
+
"output_attentions": false,
|
86 |
+
"output_hidden_states": false,
|
87 |
+
"output_scores": false,
|
88 |
+
"pad_token_id": null,
|
89 |
+
"patch_size": 4,
|
90 |
+
"prefix": null,
|
91 |
+
"problem_type": null,
|
92 |
+
"pruned_heads": {},
|
93 |
+
"qkv_bias": true,
|
94 |
+
"remove_invalid_values": false,
|
95 |
+
"repetition_penalty": 1.0,
|
96 |
+
"return_dict": true,
|
97 |
+
"return_dict_in_generate": false,
|
98 |
+
"sep_token_id": null,
|
99 |
+
"stage_names": [
|
100 |
+
"stem",
|
101 |
+
"stage1",
|
102 |
+
"stage2",
|
103 |
+
"stage3",
|
104 |
+
"stage4"
|
105 |
+
],
|
106 |
+
"suppress_tokens": null,
|
107 |
+
"task_specific_params": null,
|
108 |
+
"temperature": 1.0,
|
109 |
+
"tf_legacy_loss": false,
|
110 |
+
"tie_encoder_decoder": false,
|
111 |
+
"tie_word_embeddings": true,
|
112 |
+
"tokenizer_class": null,
|
113 |
+
"top_k": 50,
|
114 |
+
"top_p": 1.0,
|
115 |
+
"torch_dtype": null,
|
116 |
+
"torchscript": false,
|
117 |
+
"transformers_version": "4.31.0",
|
118 |
+
"typical_p": 1.0,
|
119 |
+
"use_absolute_embeddings": false,
|
120 |
+
"use_bfloat16": false,
|
121 |
+
"window_size": 7
|
122 |
+
},
|
123 |
+
"hidden_size": 512,
|
124 |
+
"id2label": {
|
125 |
+
"0": "background",
|
126 |
+
"1": "candy",
|
127 |
+
"2": "egg tart",
|
128 |
+
"3": "french fries",
|
129 |
+
"4": "chocolate",
|
130 |
+
"5": "biscuit",
|
131 |
+
"6": "popcorn",
|
132 |
+
"7": "pudding",
|
133 |
+
"8": "ice cream",
|
134 |
+
"9": "cheese butter",
|
135 |
+
"10": "cake",
|
136 |
+
"11": "wine",
|
137 |
+
"12": "milkshake",
|
138 |
+
"13": "coffee",
|
139 |
+
"14": "juice",
|
140 |
+
"15": "milk",
|
141 |
+
"16": "tea",
|
142 |
+
"17": "almond",
|
143 |
+
"18": "red beans",
|
144 |
+
"19": "cashew",
|
145 |
+
"20": "dried cranberries",
|
146 |
+
"21": "soy",
|
147 |
+
"22": "walnut",
|
148 |
+
"23": "peanut",
|
149 |
+
"24": "egg",
|
150 |
+
"25": "apple",
|
151 |
+
"26": "date",
|
152 |
+
"27": "apricot",
|
153 |
+
"28": "avocado",
|
154 |
+
"29": "banana",
|
155 |
+
"30": "strawberry",
|
156 |
+
"31": "cherry",
|
157 |
+
"32": "blueberry",
|
158 |
+
"33": "raspberry",
|
159 |
+
"34": "mango",
|
160 |
+
"35": "olives",
|
161 |
+
"36": "peach",
|
162 |
+
"37": "lemon",
|
163 |
+
"38": "pear",
|
164 |
+
"39": "fig",
|
165 |
+
"40": "pineapple",
|
166 |
+
"41": "grape",
|
167 |
+
"42": "kiwi",
|
168 |
+
"43": "melon",
|
169 |
+
"44": "orange",
|
170 |
+
"45": "watermelon",
|
171 |
+
"46": "steak",
|
172 |
+
"47": "pork",
|
173 |
+
"48": "chicken duck",
|
174 |
+
"49": "sausage",
|
175 |
+
"50": "fried meat",
|
176 |
+
"51": "lamb",
|
177 |
+
"52": "sauce",
|
178 |
+
"53": "crab",
|
179 |
+
"54": "fish",
|
180 |
+
"55": "shellfish",
|
181 |
+
"56": "shrimp",
|
182 |
+
"57": "soup",
|
183 |
+
"58": "bread",
|
184 |
+
"59": "corn",
|
185 |
+
"60": "hamburg",
|
186 |
+
"61": "pizza",
|
187 |
+
"62": "hanamaki baozi",
|
188 |
+
"63": "wonton dumplings",
|
189 |
+
"64": "pasta",
|
190 |
+
"65": "noodles",
|
191 |
+
"66": "rice",
|
192 |
+
"67": "pie",
|
193 |
+
"68": "tofu",
|
194 |
+
"69": "eggplant",
|
195 |
+
"70": "potato",
|
196 |
+
"71": "garlic",
|
197 |
+
"72": "cauliflower",
|
198 |
+
"73": "tomato",
|
199 |
+
"74": "kelp",
|
200 |
+
"75": "seaweed",
|
201 |
+
"76": "spring onion",
|
202 |
+
"77": "rape",
|
203 |
+
"78": "ginger",
|
204 |
+
"79": "okra",
|
205 |
+
"80": "lettuce",
|
206 |
+
"81": "pumpkin",
|
207 |
+
"82": "cucumber",
|
208 |
+
"83": "white radish",
|
209 |
+
"84": "carrot",
|
210 |
+
"85": "asparagus",
|
211 |
+
"86": "bamboo shoots",
|
212 |
+
"87": "broccoli",
|
213 |
+
"88": "celery stick",
|
214 |
+
"89": "cilantro mint",
|
215 |
+
"90": "snow peas",
|
216 |
+
"91": "cabbage",
|
217 |
+
"92": "bean sprouts",
|
218 |
+
"93": "onion",
|
219 |
+
"94": "pepper",
|
220 |
+
"95": "green beans",
|
221 |
+
"96": "French beans",
|
222 |
+
"97": "king oyster mushroom",
|
223 |
+
"98": "shiitake",
|
224 |
+
"99": "enoki mushroom",
|
225 |
+
"100": "oyster mushroom",
|
226 |
+
"101": "white button mushroom",
|
227 |
+
"102": "salad",
|
228 |
+
"103": "other ingredients"
|
229 |
+
},
|
230 |
+
"initializer_range": 0.02,
|
231 |
+
"label2id": {
|
232 |
+
"French beans": 96,
|
233 |
+
"almond": 17,
|
234 |
+
"apple": 25,
|
235 |
+
"apricot": 27,
|
236 |
+
"asparagus": 85,
|
237 |
+
"avocado": 28,
|
238 |
+
"background": 0,
|
239 |
+
"bamboo shoots": 86,
|
240 |
+
"banana": 29,
|
241 |
+
"bean sprouts": 92,
|
242 |
+
"biscuit": 5,
|
243 |
+
"blueberry": 32,
|
244 |
+
"bread": 58,
|
245 |
+
"broccoli": 87,
|
246 |
+
"cabbage": 91,
|
247 |
+
"cake": 10,
|
248 |
+
"candy": 1,
|
249 |
+
"carrot": 84,
|
250 |
+
"cashew": 19,
|
251 |
+
"cauliflower": 72,
|
252 |
+
"celery stick": 88,
|
253 |
+
"cheese butter": 9,
|
254 |
+
"cherry": 31,
|
255 |
+
"chicken duck": 48,
|
256 |
+
"chocolate": 4,
|
257 |
+
"cilantro mint": 89,
|
258 |
+
"coffee": 13,
|
259 |
+
"corn": 59,
|
260 |
+
"crab": 53,
|
261 |
+
"cucumber": 82,
|
262 |
+
"date": 26,
|
263 |
+
"dried cranberries": 20,
|
264 |
+
"egg": 24,
|
265 |
+
"egg tart": 2,
|
266 |
+
"eggplant": 69,
|
267 |
+
"enoki mushroom": 99,
|
268 |
+
"fig": 39,
|
269 |
+
"fish": 54,
|
270 |
+
"french fries": 3,
|
271 |
+
"fried meat": 50,
|
272 |
+
"garlic": 71,
|
273 |
+
"ginger": 78,
|
274 |
+
"grape": 41,
|
275 |
+
"green beans": 95,
|
276 |
+
"hamburg": 60,
|
277 |
+
"hanamaki baozi": 62,
|
278 |
+
"ice cream": 8,
|
279 |
+
"juice": 14,
|
280 |
+
"kelp": 74,
|
281 |
+
"king oyster mushroom": 97,
|
282 |
+
"kiwi": 42,
|
283 |
+
"lamb": 51,
|
284 |
+
"lemon": 37,
|
285 |
+
"lettuce": 80,
|
286 |
+
"mango": 34,
|
287 |
+
"melon": 43,
|
288 |
+
"milk": 15,
|
289 |
+
"milkshake": 12,
|
290 |
+
"noodles": 65,
|
291 |
+
"okra": 79,
|
292 |
+
"olives": 35,
|
293 |
+
"onion": 93,
|
294 |
+
"orange": 44,
|
295 |
+
"other ingredients": 103,
|
296 |
+
"oyster mushroom": 100,
|
297 |
+
"pasta": 64,
|
298 |
+
"peach": 36,
|
299 |
+
"peanut": 23,
|
300 |
+
"pear": 38,
|
301 |
+
"pepper": 94,
|
302 |
+
"pie": 67,
|
303 |
+
"pineapple": 40,
|
304 |
+
"pizza": 61,
|
305 |
+
"popcorn": 6,
|
306 |
+
"pork": 47,
|
307 |
+
"potato": 70,
|
308 |
+
"pudding": 7,
|
309 |
+
"pumpkin": 81,
|
310 |
+
"rape": 77,
|
311 |
+
"raspberry": 33,
|
312 |
+
"red beans": 18,
|
313 |
+
"rice": 66,
|
314 |
+
"salad": 102,
|
315 |
+
"sauce": 52,
|
316 |
+
"sausage": 49,
|
317 |
+
"seaweed": 75,
|
318 |
+
"shellfish": 55,
|
319 |
+
"shiitake": 98,
|
320 |
+
"shrimp": 56,
|
321 |
+
"snow peas": 90,
|
322 |
+
"soup": 57,
|
323 |
+
"soy": 21,
|
324 |
+
"spring onion": 76,
|
325 |
+
"steak": 46,
|
326 |
+
"strawberry": 30,
|
327 |
+
"tea": 16,
|
328 |
+
"tofu": 68,
|
329 |
+
"tomato": 73,
|
330 |
+
"walnut": 22,
|
331 |
+
"watermelon": 45,
|
332 |
+
"white button mushroom": 101,
|
333 |
+
"white radish": 83,
|
334 |
+
"wine": 11,
|
335 |
+
"wonton dumplings": 63
|
336 |
+
},
|
337 |
+
"loss_ignore_index": 255,
|
338 |
+
"model_type": "upernet",
|
339 |
+
"pool_scales": [
|
340 |
+
1,
|
341 |
+
2,
|
342 |
+
3,
|
343 |
+
6
|
344 |
+
],
|
345 |
+
"torch_dtype": "float32",
|
346 |
+
"transformers_version": null,
|
347 |
+
"use_auxiliary_head": true
|
348 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_reduce_labels": false,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.485,
|
8 |
+
0.456,
|
9 |
+
0.406
|
10 |
+
],
|
11 |
+
"image_processor_type": "SegformerImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.229,
|
14 |
+
0.224,
|
15 |
+
0.225
|
16 |
+
],
|
17 |
+
"resample": 2,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"height": 512,
|
21 |
+
"width": 512
|
22 |
+
}
|
23 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c81064aa324ba40024bd4696c3940b76befe5525dc80d2de99ab703160bcf0a3
|
3 |
+
size 325589737
|