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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_commit_hash": "b569351e060953d37fd7dfb8b16ab83c360a13d6",
|
3 |
+
"_name_or_path": "facebook/maskformer-swin-base-ade",
|
4 |
+
"architectures": [
|
5 |
+
"MaskFormerForInstanceSegmentation"
|
6 |
+
],
|
7 |
+
"backbone_config": {
|
8 |
+
"_name_or_path": "",
|
9 |
+
"add_cross_attention": false,
|
10 |
+
"architectures": null,
|
11 |
+
"attention_probs_dropout_prob": 0.0,
|
12 |
+
"bad_words_ids": null,
|
13 |
+
"begin_suppress_tokens": null,
|
14 |
+
"bos_token_id": null,
|
15 |
+
"chunk_size_feed_forward": 0,
|
16 |
+
"cross_attention_hidden_size": null,
|
17 |
+
"decoder_start_token_id": null,
|
18 |
+
"depths": [
|
19 |
+
2,
|
20 |
+
2,
|
21 |
+
18,
|
22 |
+
2
|
23 |
+
],
|
24 |
+
"diversity_penalty": 0.0,
|
25 |
+
"do_sample": false,
|
26 |
+
"drop_path_rate": 0.3,
|
27 |
+
"early_stopping": false,
|
28 |
+
"embed_dim": 128,
|
29 |
+
"encoder_no_repeat_ngram_size": 0,
|
30 |
+
"encoder_stride": 32,
|
31 |
+
"eos_token_id": null,
|
32 |
+
"exponential_decay_length_penalty": null,
|
33 |
+
"finetuning_task": null,
|
34 |
+
"forced_bos_token_id": null,
|
35 |
+
"forced_eos_token_id": null,
|
36 |
+
"hidden_act": "gelu",
|
37 |
+
"hidden_dropout_prob": 0.0,
|
38 |
+
"hidden_size": 1024,
|
39 |
+
"id2label": {
|
40 |
+
"0": "LABEL_0",
|
41 |
+
"1": "LABEL_1"
|
42 |
+
},
|
43 |
+
"image_size": 384,
|
44 |
+
"in_channels": 3,
|
45 |
+
"initializer_range": 0.02,
|
46 |
+
"is_decoder": false,
|
47 |
+
"is_encoder_decoder": false,
|
48 |
+
"label2id": {
|
49 |
+
"LABEL_0": 0,
|
50 |
+
"LABEL_1": 1
|
51 |
+
},
|
52 |
+
"layer_norm_eps": 1e-05,
|
53 |
+
"length_penalty": 1.0,
|
54 |
+
"max_length": 20,
|
55 |
+
"min_length": 0,
|
56 |
+
"mlp_ratio": 4.0,
|
57 |
+
"model_type": "swin",
|
58 |
+
"no_repeat_ngram_size": 0,
|
59 |
+
"num_beam_groups": 1,
|
60 |
+
"num_beams": 1,
|
61 |
+
"num_channels": 3,
|
62 |
+
"num_heads": [
|
63 |
+
4,
|
64 |
+
8,
|
65 |
+
16,
|
66 |
+
32
|
67 |
+
],
|
68 |
+
"num_layers": 4,
|
69 |
+
"num_return_sequences": 1,
|
70 |
+
"out_features": [
|
71 |
+
"stage4"
|
72 |
+
],
|
73 |
+
"out_indices": [
|
74 |
+
4
|
75 |
+
],
|
76 |
+
"output_attentions": false,
|
77 |
+
"output_hidden_states": false,
|
78 |
+
"output_scores": false,
|
79 |
+
"pad_token_id": null,
|
80 |
+
"patch_size": 4,
|
81 |
+
"path_norm": true,
|
82 |
+
"prefix": null,
|
83 |
+
"pretrain_img_size": 384,
|
84 |
+
"problem_type": null,
|
85 |
+
"pruned_heads": {},
|
86 |
+
"qkv_bias": true,
|
87 |
+
"remove_invalid_values": false,
|
88 |
+
"repetition_penalty": 1.0,
|
89 |
+
"return_dict": true,
|
90 |
+
"return_dict_in_generate": false,
|
91 |
+
"sep_token_id": null,
|
92 |
+
"stage_names": [
|
93 |
+
"stem",
|
94 |
+
"stage1",
|
95 |
+
"stage2",
|
96 |
+
"stage3",
|
97 |
+
"stage4"
|
98 |
+
],
|
99 |
+
"suppress_tokens": null,
|
100 |
+
"task_specific_params": null,
|
101 |
+
"temperature": 1.0,
|
102 |
+
"tf_legacy_loss": false,
|
103 |
+
"tie_encoder_decoder": false,
|
104 |
+
"tie_word_embeddings": true,
|
105 |
+
"tokenizer_class": null,
|
106 |
+
"top_k": 50,
|
107 |
+
"top_p": 1.0,
|
108 |
+
"torch_dtype": null,
|
109 |
+
"torchscript": false,
|
110 |
+
"transformers_version": "4.31.0.dev0",
|
111 |
+
"typical_p": 1.0,
|
112 |
+
"use_absolute_embeddings": false,
|
113 |
+
"use_bfloat16": false,
|
114 |
+
"window_size": 12
|
115 |
+
},
|
116 |
+
"ce_weight": 1.0,
|
117 |
+
"cross_entropy_weight": 1.0,
|
118 |
+
"decoder_config": {
|
119 |
+
"_commit_hash": null,
|
120 |
+
"_name_or_path": "",
|
121 |
+
"activation_dropout": 0.0,
|
122 |
+
"activation_function": "relu",
|
123 |
+
"add_cross_attention": false,
|
124 |
+
"architectures": null,
|
125 |
+
"attention_dropout": 0.0,
|
126 |
+
"auxiliary_loss": false,
|
127 |
+
"backbone": "resnet50",
|
128 |
+
"backbone_config": null,
|
129 |
+
"bad_words_ids": null,
|
130 |
+
"bbox_cost": 5,
|
131 |
+
"bbox_loss_coefficient": 5,
|
132 |
+
"begin_suppress_tokens": null,
|
133 |
+
"bos_token_id": null,
|
134 |
+
"chunk_size_feed_forward": 0,
|
135 |
+
"class_cost": 1,
|
136 |
+
"cross_attention_hidden_size": null,
|
137 |
+
"d_model": 256,
|
138 |
+
"decoder_attention_heads": 8,
|
139 |
+
"decoder_ffn_dim": 2048,
|
140 |
+
"decoder_layerdrop": 0.0,
|
141 |
+
"decoder_layers": 6,
|
142 |
+
"decoder_start_token_id": null,
|
143 |
+
"dice_loss_coefficient": 1,
|
144 |
+
"dilation": false,
|
145 |
+
"diversity_penalty": 0.0,
|
146 |
+
"do_sample": false,
|
147 |
+
"dropout": 0.1,
|
148 |
+
"early_stopping": false,
|
149 |
+
"encoder_attention_heads": 8,
|
150 |
+
"encoder_ffn_dim": 2048,
|
151 |
+
"encoder_layerdrop": 0.0,
|
152 |
+
"encoder_layers": 6,
|
153 |
+
"encoder_no_repeat_ngram_size": 0,
|
154 |
+
"eos_coefficient": 0.1,
|
155 |
+
"eos_token_id": null,
|
156 |
+
"exponential_decay_length_penalty": null,
|
157 |
+
"finetuning_task": null,
|
158 |
+
"forced_bos_token_id": null,
|
159 |
+
"forced_eos_token_id": null,
|
160 |
+
"giou_cost": 2,
|
161 |
+
"giou_loss_coefficient": 2,
|
162 |
+
"id2label": {
|
163 |
+
"0": "LABEL_0",
|
164 |
+
"1": "LABEL_1"
|
165 |
+
},
|
166 |
+
"init_std": 0.02,
|
167 |
+
"init_xavier_std": 1.0,
|
168 |
+
"is_decoder": false,
|
169 |
+
"is_encoder_decoder": true,
|
170 |
+
"label2id": {
|
171 |
+
"LABEL_0": 0,
|
172 |
+
"LABEL_1": 1
|
173 |
+
},
|
174 |
+
"length_penalty": 1.0,
|
175 |
+
"mask_loss_coefficient": 1,
|
176 |
+
"max_length": 20,
|
177 |
+
"max_position_embeddings": 1024,
|
178 |
+
"min_length": 0,
|
179 |
+
"model_type": "detr",
|
180 |
+
"no_repeat_ngram_size": 0,
|
181 |
+
"num_beam_groups": 1,
|
182 |
+
"num_beams": 1,
|
183 |
+
"num_channels": 3,
|
184 |
+
"num_hidden_layers": 6,
|
185 |
+
"num_queries": 100,
|
186 |
+
"num_return_sequences": 1,
|
187 |
+
"output_attentions": false,
|
188 |
+
"output_hidden_states": false,
|
189 |
+
"output_scores": false,
|
190 |
+
"pad_token_id": null,
|
191 |
+
"position_embedding_type": "sine",
|
192 |
+
"prefix": null,
|
193 |
+
"problem_type": null,
|
194 |
+
"pruned_heads": {},
|
195 |
+
"remove_invalid_values": false,
|
196 |
+
"repetition_penalty": 1.0,
|
197 |
+
"return_dict": true,
|
198 |
+
"return_dict_in_generate": false,
|
199 |
+
"scale_embedding": false,
|
200 |
+
"sep_token_id": null,
|
201 |
+
"suppress_tokens": null,
|
202 |
+
"task_specific_params": null,
|
203 |
+
"temperature": 1.0,
|
204 |
+
"tf_legacy_loss": false,
|
205 |
+
"tie_encoder_decoder": false,
|
206 |
+
"tie_word_embeddings": true,
|
207 |
+
"tokenizer_class": null,
|
208 |
+
"top_k": 50,
|
209 |
+
"top_p": 1.0,
|
210 |
+
"torch_dtype": null,
|
211 |
+
"torchscript": false,
|
212 |
+
"transformers_version": "4.17.0.dev0",
|
213 |
+
"typical_p": 1.0,
|
214 |
+
"use_bfloat16": false,
|
215 |
+
"use_pretrained_backbone": true,
|
216 |
+
"use_timm_backbone": true
|
217 |
+
},
|
218 |
+
"dice_weight": 1.0,
|
219 |
+
"fpn_feature_size": 256,
|
220 |
+
"id2label": {
|
221 |
+
"0": "background",
|
222 |
+
"1": "column",
|
223 |
+
"2": "slab",
|
224 |
+
"3": "beam",
|
225 |
+
"4": "pile",
|
226 |
+
"5": "stairs",
|
227 |
+
"6": "cwall",
|
228 |
+
"7": "column_end",
|
229 |
+
"8": "stripfooting",
|
230 |
+
"9": "edgefooting",
|
231 |
+
"10": "cornerfooting",
|
232 |
+
"11": "concentricfooting",
|
233 |
+
"12": "circ_column",
|
234 |
+
"13": "cantileverfooting"
|
235 |
+
},
|
236 |
+
"init_std": 0.02,
|
237 |
+
"init_xavier_std": 1.0,
|
238 |
+
"label2id": {
|
239 |
+
"animal": 126,
|
240 |
+
"arcade machine": 78,
|
241 |
+
"armchair": 30,
|
242 |
+
"awning, sunshade, sunblind": 86,
|
243 |
+
"bag": 115,
|
244 |
+
"ball": 119,
|
245 |
+
"bannister, banister, balustrade, balusters, handrail": 95,
|
246 |
+
"bar": 77,
|
247 |
+
"barrel, cask": 111,
|
248 |
+
"base, pedestal, stand": 40,
|
249 |
+
"basket, handbasket": 112,
|
250 |
+
"bed": 7,
|
251 |
+
"bench": 69,
|
252 |
+
"bicycle": 127,
|
253 |
+
"blanket, cover": 131,
|
254 |
+
"blind, screen": 63,
|
255 |
+
"boat": 76,
|
256 |
+
"book": 67,
|
257 |
+
"bookcase": 62,
|
258 |
+
"booth": 88,
|
259 |
+
"bottle": 98,
|
260 |
+
"box": 41,
|
261 |
+
"bridge, span": 61,
|
262 |
+
"buffet, counter, sideboard": 99,
|
263 |
+
"building": 1,
|
264 |
+
"bulletin board": 144,
|
265 |
+
"bus": 80,
|
266 |
+
"cabinet": 10,
|
267 |
+
"canopy": 106,
|
268 |
+
"car": 20,
|
269 |
+
"case, display case, showcase, vitrine": 55,
|
270 |
+
"ceiling": 5,
|
271 |
+
"chair": 19,
|
272 |
+
"chandelier": 85,
|
273 |
+
"chest of drawers, chest, bureau, dresser": 44,
|
274 |
+
"clock": 148,
|
275 |
+
"clothes": 92,
|
276 |
+
"coffee table": 64,
|
277 |
+
"column, pillar": 42,
|
278 |
+
"computer": 74,
|
279 |
+
"conveyer belt, conveyor belt, conveyer, conveyor, transporter": 105,
|
280 |
+
"counter": 45,
|
281 |
+
"countertop": 70,
|
282 |
+
"cradle": 117,
|
283 |
+
"crt screen": 141,
|
284 |
+
"curtain": 18,
|
285 |
+
"cushion": 39,
|
286 |
+
"desk": 33,
|
287 |
+
"dirt track": 91,
|
288 |
+
"dishwasher": 129,
|
289 |
+
"door": 14,
|
290 |
+
"earth, ground": 13,
|
291 |
+
"escalator, moving staircase, moving stairway": 96,
|
292 |
+
"falls": 113,
|
293 |
+
"fan": 139,
|
294 |
+
"fence": 32,
|
295 |
+
"field": 29,
|
296 |
+
"fireplace": 49,
|
297 |
+
"flag": 149,
|
298 |
+
"floor": 3,
|
299 |
+
"flower": 66,
|
300 |
+
"food, solid food": 120,
|
301 |
+
"fountain": 104,
|
302 |
+
"glass, drinking glass": 147,
|
303 |
+
"grandstand, covered stand": 51,
|
304 |
+
"grass": 9,
|
305 |
+
"hill": 68,
|
306 |
+
"hood, exhaust hood": 133,
|
307 |
+
"house": 25,
|
308 |
+
"hovel, hut, hutch, shack, shanty": 79,
|
309 |
+
"kitchen island": 73,
|
310 |
+
"lake": 128,
|
311 |
+
"lamp": 36,
|
312 |
+
"land, ground, soil": 94,
|
313 |
+
"light": 82,
|
314 |
+
"microwave": 124,
|
315 |
+
"minibike, motorbike": 116,
|
316 |
+
"mirror": 27,
|
317 |
+
"monitor": 143,
|
318 |
+
"mountain, mount": 16,
|
319 |
+
"ottoman, pouf, pouffe, puff, hassock": 97,
|
320 |
+
"oven": 118,
|
321 |
+
"painting, picture": 22,
|
322 |
+
"palm, palm tree": 72,
|
323 |
+
"path": 52,
|
324 |
+
"person": 12,
|
325 |
+
"pier": 140,
|
326 |
+
"pillow": 57,
|
327 |
+
"plane": 90,
|
328 |
+
"plant": 17,
|
329 |
+
"plate": 142,
|
330 |
+
"plaything, toy": 108,
|
331 |
+
"pole": 93,
|
332 |
+
"pool": 109,
|
333 |
+
"pool table, billiard table, snooker table": 56,
|
334 |
+
"poster, posting, placard, notice, bill, card": 100,
|
335 |
+
"pot": 125,
|
336 |
+
"radiator": 146,
|
337 |
+
"rail": 38,
|
338 |
+
"refrigerator, icebox": 50,
|
339 |
+
"river": 60,
|
340 |
+
"road, route": 6,
|
341 |
+
"rock, stone": 34,
|
342 |
+
"rug": 28,
|
343 |
+
"runway": 54,
|
344 |
+
"sand": 46,
|
345 |
+
"sconce": 134,
|
346 |
+
"screen": 130,
|
347 |
+
"screen door, screen": 58,
|
348 |
+
"sculpture": 132,
|
349 |
+
"sea": 26,
|
350 |
+
"seat": 31,
|
351 |
+
"shelf": 24,
|
352 |
+
"ship": 103,
|
353 |
+
"shower": 145,
|
354 |
+
"sidewalk, pavement": 11,
|
355 |
+
"signboard, sign": 43,
|
356 |
+
"sink": 47,
|
357 |
+
"sky": 2,
|
358 |
+
"skyscraper": 48,
|
359 |
+
"sofa": 23,
|
360 |
+
"stage": 101,
|
361 |
+
"stairs": 53,
|
362 |
+
"stairway, staircase": 59,
|
363 |
+
"step, stair": 121,
|
364 |
+
"stool": 110,
|
365 |
+
"stove": 71,
|
366 |
+
"street lamp": 87,
|
367 |
+
"swivel chair": 75,
|
368 |
+
"table": 15,
|
369 |
+
"tank, storage tank": 122,
|
370 |
+
"tent": 114,
|
371 |
+
"toilet, can, commode, crapper, pot, potty, stool, throne": 65,
|
372 |
+
"towel": 81,
|
373 |
+
"tower": 84,
|
374 |
+
"trade name": 123,
|
375 |
+
"traffic light": 136,
|
376 |
+
"trash can": 138,
|
377 |
+
"tray": 137,
|
378 |
+
"tree": 4,
|
379 |
+
"truck": 83,
|
380 |
+
"tub": 37,
|
381 |
+
"tv": 89,
|
382 |
+
"van": 102,
|
383 |
+
"vase": 135,
|
384 |
+
"wall": 0,
|
385 |
+
"wardrobe, closet, press": 35,
|
386 |
+
"washer, automatic washer, washing machine": 107,
|
387 |
+
"water": 21,
|
388 |
+
"window ": 8
|
389 |
+
},
|
390 |
+
"mask_feature_size": 256,
|
391 |
+
"mask_weight": 20.0,
|
392 |
+
"model_type": "maskformer",
|
393 |
+
"no_object_weight": 0.1,
|
394 |
+
"num_attention_heads": 8,
|
395 |
+
"num_hidden_layers": 6,
|
396 |
+
"num_queries": 100,
|
397 |
+
"output_auxiliary_logits": null,
|
398 |
+
"torch_dtype": "float32",
|
399 |
+
"transformers_version": null,
|
400 |
+
"use_auxiliary_loss": false
|
401 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:781b4f9a55c6d457b37a3442e915fe11e9667ac3f100f451bbca0b5be2a9c79a
|
3 |
+
size 411411821
|