adirik commited on
Commit
dc90ebf
1 Parent(s): f2f1040

Upload MaskFormerForInstanceSegmentation

Browse files
Files changed (2) hide show
  1. config.json +495 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": "6628e1a5bf23dd6666edd1f0867e46458a94706c",
3
+ "_name_or_path": "facebook/maskformer-swin-base-coco",
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": null,
71
+ "output_attentions": false,
72
+ "output_hidden_states": false,
73
+ "output_scores": false,
74
+ "pad_token_id": null,
75
+ "patch_size": 4,
76
+ "path_norm": true,
77
+ "prefix": null,
78
+ "pretrain_img_size": 384,
79
+ "problem_type": null,
80
+ "pruned_heads": {},
81
+ "qkv_bias": true,
82
+ "remove_invalid_values": false,
83
+ "repetition_penalty": 1.0,
84
+ "return_dict": true,
85
+ "return_dict_in_generate": false,
86
+ "sep_token_id": null,
87
+ "stage_names": [
88
+ "stem",
89
+ "stage1",
90
+ "stage2",
91
+ "stage3",
92
+ "stage4"
93
+ ],
94
+ "suppress_tokens": null,
95
+ "task_specific_params": null,
96
+ "temperature": 1.0,
97
+ "tf_legacy_loss": false,
98
+ "tie_encoder_decoder": false,
99
+ "tie_word_embeddings": true,
100
+ "tokenizer_class": null,
101
+ "top_k": 50,
102
+ "top_p": 1.0,
103
+ "torch_dtype": null,
104
+ "torchscript": false,
105
+ "transformers_version": "4.26.0.dev0",
106
+ "typical_p": 1.0,
107
+ "use_absolute_embeddings": false,
108
+ "use_bfloat16": false,
109
+ "window_size": 12
110
+ },
111
+ "ce_weight": 1.0,
112
+ "cross_entropy_weight": 1.0,
113
+ "decoder_config": {
114
+ "_name_or_path": "",
115
+ "activation_dropout": 0.0,
116
+ "activation_function": "relu",
117
+ "add_cross_attention": false,
118
+ "architectures": null,
119
+ "attention_dropout": 0.0,
120
+ "auxiliary_loss": false,
121
+ "backbone": "resnet50",
122
+ "bad_words_ids": null,
123
+ "bbox_cost": 5,
124
+ "bbox_loss_coefficient": 5,
125
+ "begin_suppress_tokens": null,
126
+ "bos_token_id": null,
127
+ "chunk_size_feed_forward": 0,
128
+ "class_cost": 1,
129
+ "cross_attention_hidden_size": null,
130
+ "d_model": 256,
131
+ "decoder_attention_heads": 8,
132
+ "decoder_ffn_dim": 2048,
133
+ "decoder_layerdrop": 0.0,
134
+ "decoder_layers": 6,
135
+ "decoder_start_token_id": null,
136
+ "dice_loss_coefficient": 1,
137
+ "dilation": false,
138
+ "diversity_penalty": 0.0,
139
+ "do_sample": false,
140
+ "dropout": 0.1,
141
+ "early_stopping": false,
142
+ "encoder_attention_heads": 8,
143
+ "encoder_ffn_dim": 2048,
144
+ "encoder_layerdrop": 0.0,
145
+ "encoder_layers": 6,
146
+ "encoder_no_repeat_ngram_size": 0,
147
+ "eos_coefficient": 0.1,
148
+ "eos_token_id": null,
149
+ "exponential_decay_length_penalty": null,
150
+ "finetuning_task": null,
151
+ "forced_bos_token_id": null,
152
+ "forced_eos_token_id": null,
153
+ "giou_cost": 2,
154
+ "giou_loss_coefficient": 2,
155
+ "id2label": {
156
+ "0": "LABEL_0",
157
+ "1": "LABEL_1"
158
+ },
159
+ "init_std": 0.02,
160
+ "init_xavier_std": 1.0,
161
+ "is_decoder": false,
162
+ "is_encoder_decoder": true,
163
+ "label2id": {
164
+ "LABEL_0": 0,
165
+ "LABEL_1": 1
166
+ },
167
+ "length_penalty": 1.0,
168
+ "mask_loss_coefficient": 1,
169
+ "max_length": 20,
170
+ "max_position_embeddings": 1024,
171
+ "min_length": 0,
172
+ "model_type": "detr",
173
+ "no_repeat_ngram_size": 0,
174
+ "num_beam_groups": 1,
175
+ "num_beams": 1,
176
+ "num_channels": 3,
177
+ "num_hidden_layers": 6,
178
+ "num_queries": 100,
179
+ "num_return_sequences": 1,
180
+ "output_attentions": false,
181
+ "output_hidden_states": false,
182
+ "output_scores": false,
183
+ "pad_token_id": null,
184
+ "position_embedding_type": "sine",
185
+ "prefix": null,
186
+ "problem_type": null,
187
+ "pruned_heads": {},
188
+ "remove_invalid_values": false,
189
+ "repetition_penalty": 1.0,
190
+ "return_dict": true,
191
+ "return_dict_in_generate": false,
192
+ "scale_embedding": false,
193
+ "sep_token_id": null,
194
+ "suppress_tokens": null,
195
+ "task_specific_params": null,
196
+ "temperature": 1.0,
197
+ "tf_legacy_loss": false,
198
+ "tie_encoder_decoder": false,
199
+ "tie_word_embeddings": true,
200
+ "tokenizer_class": null,
201
+ "top_k": 50,
202
+ "top_p": 1.0,
203
+ "torch_dtype": null,
204
+ "torchscript": false,
205
+ "transformers_version": "4.26.0.dev0",
206
+ "typical_p": 1.0,
207
+ "use_bfloat16": false,
208
+ "use_pretrained_backbone": true
209
+ },
210
+ "dice_weight": 1.0,
211
+ "fpn_feature_size": 256,
212
+ "id2label": {
213
+ "0": "person",
214
+ "1": "bicycle",
215
+ "2": "car",
216
+ "3": "motorcycle",
217
+ "4": "airplane",
218
+ "5": "bus",
219
+ "6": "train",
220
+ "7": "truck",
221
+ "8": "boat",
222
+ "9": "traffic light",
223
+ "10": "fire hydrant",
224
+ "11": "stop sign",
225
+ "12": "parking meter",
226
+ "13": "bench",
227
+ "14": "bird",
228
+ "15": "cat",
229
+ "16": "dog",
230
+ "17": "horse",
231
+ "18": "sheep",
232
+ "19": "cow",
233
+ "20": "elephant",
234
+ "21": "bear",
235
+ "22": "zebra",
236
+ "23": "giraffe",
237
+ "24": "backpack",
238
+ "25": "umbrella",
239
+ "26": "handbag",
240
+ "27": "tie",
241
+ "28": "suitcase",
242
+ "29": "frisbee",
243
+ "30": "skis",
244
+ "31": "snowboard",
245
+ "32": "sports ball",
246
+ "33": "kite",
247
+ "34": "baseball bat",
248
+ "35": "baseball glove",
249
+ "36": "skateboard",
250
+ "37": "surfboard",
251
+ "38": "tennis racket",
252
+ "39": "bottle",
253
+ "40": "wine glass",
254
+ "41": "cup",
255
+ "42": "fork",
256
+ "43": "knife",
257
+ "44": "spoon",
258
+ "45": "bowl",
259
+ "46": "banana",
260
+ "47": "apple",
261
+ "48": "sandwich",
262
+ "49": "orange",
263
+ "50": "broccoli",
264
+ "51": "carrot",
265
+ "52": "hot dog",
266
+ "53": "pizza",
267
+ "54": "donut",
268
+ "55": "cake",
269
+ "56": "chair",
270
+ "57": "couch",
271
+ "58": "potted plant",
272
+ "59": "bed",
273
+ "60": "dining table",
274
+ "61": "toilet",
275
+ "62": "tv",
276
+ "63": "laptop",
277
+ "64": "mouse",
278
+ "65": "remote",
279
+ "66": "keyboard",
280
+ "67": "cell phone",
281
+ "68": "microwave",
282
+ "69": "oven",
283
+ "70": "toaster",
284
+ "71": "sink",
285
+ "72": "refrigerator",
286
+ "73": "book",
287
+ "74": "clock",
288
+ "75": "vase",
289
+ "76": "scissors",
290
+ "77": "teddy bear",
291
+ "78": "hair drier",
292
+ "79": "toothbrush",
293
+ "80": "banner",
294
+ "81": "blanket",
295
+ "82": "bridge",
296
+ "83": "cardboard",
297
+ "84": "counter",
298
+ "85": "curtain",
299
+ "86": "door-stuff",
300
+ "87": "floor-wood",
301
+ "88": "flower",
302
+ "89": "fruit",
303
+ "90": "gravel",
304
+ "91": "house",
305
+ "92": "light",
306
+ "93": "mirror-stuff",
307
+ "94": "net",
308
+ "95": "pillow",
309
+ "96": "platform",
310
+ "97": "playingfield",
311
+ "98": "railroad",
312
+ "99": "river",
313
+ "100": "road",
314
+ "101": "roof",
315
+ "102": "sand",
316
+ "103": "sea",
317
+ "104": "shelf",
318
+ "105": "snow",
319
+ "106": "stairs",
320
+ "107": "tent",
321
+ "108": "towel",
322
+ "109": "wall-brick",
323
+ "110": "wall-stone",
324
+ "111": "wall-tile",
325
+ "112": "wall-wood",
326
+ "113": "water-other",
327
+ "114": "window-blind",
328
+ "115": "window-other",
329
+ "116": "tree-merged",
330
+ "117": "fence-merged",
331
+ "118": "ceiling-merged",
332
+ "119": "sky-other-merged",
333
+ "120": "cabinet-merged",
334
+ "121": "table-merged",
335
+ "122": "floor-other-merged",
336
+ "123": "pavement-merged",
337
+ "124": "mountain-merged",
338
+ "125": "grass-merged",
339
+ "126": "dirt-merged",
340
+ "127": "paper-merged",
341
+ "128": "food-other-merged",
342
+ "129": "building-other-merged",
343
+ "130": "rock-merged",
344
+ "131": "wall-other-merged",
345
+ "132": "rug-merged"
346
+ },
347
+ "init_std": 0.02,
348
+ "init_xavier_std": 1.0,
349
+ "label2id": {
350
+ "airplane": 4,
351
+ "apple": 47,
352
+ "backpack": 24,
353
+ "banana": 46,
354
+ "banner": 80,
355
+ "baseball bat": 34,
356
+ "baseball glove": 35,
357
+ "bear": 21,
358
+ "bed": 59,
359
+ "bench": 13,
360
+ "bicycle": 1,
361
+ "bird": 14,
362
+ "blanket": 81,
363
+ "boat": 8,
364
+ "book": 73,
365
+ "bottle": 39,
366
+ "bowl": 45,
367
+ "bridge": 82,
368
+ "broccoli": 50,
369
+ "building-other-merged": 129,
370
+ "bus": 5,
371
+ "cabinet-merged": 120,
372
+ "cake": 55,
373
+ "car": 2,
374
+ "cardboard": 83,
375
+ "carrot": 51,
376
+ "cat": 15,
377
+ "ceiling-merged": 118,
378
+ "cell phone": 67,
379
+ "chair": 56,
380
+ "clock": 74,
381
+ "couch": 57,
382
+ "counter": 84,
383
+ "cow": 19,
384
+ "cup": 41,
385
+ "curtain": 85,
386
+ "dining table": 60,
387
+ "dirt-merged": 126,
388
+ "dog": 16,
389
+ "donut": 54,
390
+ "door-stuff": 86,
391
+ "elephant": 20,
392
+ "fence-merged": 117,
393
+ "fire hydrant": 10,
394
+ "floor-other-merged": 122,
395
+ "floor-wood": 87,
396
+ "flower": 88,
397
+ "food-other-merged": 128,
398
+ "fork": 42,
399
+ "frisbee": 29,
400
+ "fruit": 89,
401
+ "giraffe": 23,
402
+ "grass-merged": 125,
403
+ "gravel": 90,
404
+ "hair drier": 78,
405
+ "handbag": 26,
406
+ "horse": 17,
407
+ "hot dog": 52,
408
+ "house": 91,
409
+ "keyboard": 66,
410
+ "kite": 33,
411
+ "knife": 43,
412
+ "laptop": 63,
413
+ "light": 92,
414
+ "microwave": 68,
415
+ "mirror-stuff": 93,
416
+ "motorcycle": 3,
417
+ "mountain-merged": 124,
418
+ "mouse": 64,
419
+ "net": 94,
420
+ "orange": 49,
421
+ "oven": 69,
422
+ "paper-merged": 127,
423
+ "parking meter": 12,
424
+ "pavement-merged": 123,
425
+ "person": 0,
426
+ "pillow": 95,
427
+ "pizza": 53,
428
+ "platform": 96,
429
+ "playingfield": 97,
430
+ "potted plant": 58,
431
+ "railroad": 98,
432
+ "refrigerator": 72,
433
+ "remote": 65,
434
+ "river": 99,
435
+ "road": 100,
436
+ "rock-merged": 130,
437
+ "roof": 101,
438
+ "rug-merged": 132,
439
+ "sand": 102,
440
+ "sandwich": 48,
441
+ "scissors": 76,
442
+ "sea": 103,
443
+ "sheep": 18,
444
+ "shelf": 104,
445
+ "sink": 71,
446
+ "skateboard": 36,
447
+ "skis": 30,
448
+ "sky-other-merged": 119,
449
+ "snow": 105,
450
+ "snowboard": 31,
451
+ "spoon": 44,
452
+ "sports ball": 32,
453
+ "stairs": 106,
454
+ "stop sign": 11,
455
+ "suitcase": 28,
456
+ "surfboard": 37,
457
+ "table-merged": 121,
458
+ "teddy bear": 77,
459
+ "tennis racket": 38,
460
+ "tent": 107,
461
+ "tie": 27,
462
+ "toaster": 70,
463
+ "toilet": 61,
464
+ "toothbrush": 79,
465
+ "towel": 108,
466
+ "traffic light": 9,
467
+ "train": 6,
468
+ "tree-merged": 116,
469
+ "truck": 7,
470
+ "tv": 62,
471
+ "umbrella": 25,
472
+ "vase": 75,
473
+ "wall-brick": 109,
474
+ "wall-other-merged": 131,
475
+ "wall-stone": 110,
476
+ "wall-tile": 111,
477
+ "wall-wood": 112,
478
+ "water-other": 113,
479
+ "window-blind": 114,
480
+ "window-other": 115,
481
+ "wine glass": 40,
482
+ "zebra": 22
483
+ },
484
+ "mask_feature_size": 256,
485
+ "mask_weight": 20.0,
486
+ "model_type": "maskformer",
487
+ "no_object_weight": 0.1,
488
+ "num_attention_heads": 8,
489
+ "num_hidden_layers": 6,
490
+ "num_queries": 100,
491
+ "output_auxiliary_logits": null,
492
+ "torch_dtype": "float32",
493
+ "transformers_version": null,
494
+ "use_auxiliary_loss": false
495
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5146c849ce2efbd0b6dd06a715d7b2d598bb5af6abc33602112807cefbb35584
3
+ size 411525485