nielsr HF staff commited on
Commit
cd87f40
1 Parent(s): 8a346e2

Upload MaskFormerForInstanceSegmentation

Browse files
Files changed (2) hide show
  1. config.json +503 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,503 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "architectures": [
4
+ "MaskFormerForInstanceSegmentation"
5
+ ],
6
+ "backbone_config": {
7
+ "_name_or_path": "",
8
+ "add_cross_attention": false,
9
+ "architectures": null,
10
+ "bad_words_ids": null,
11
+ "begin_suppress_tokens": null,
12
+ "bos_token_id": null,
13
+ "chunk_size_feed_forward": 0,
14
+ "cross_attention_hidden_size": null,
15
+ "decoder_start_token_id": null,
16
+ "depths": [
17
+ 3,
18
+ 4,
19
+ 6,
20
+ 3
21
+ ],
22
+ "diversity_penalty": 0.0,
23
+ "do_sample": false,
24
+ "downsample_in_first_stage": false,
25
+ "early_stopping": false,
26
+ "embedding_size": 64,
27
+ "encoder_no_repeat_ngram_size": 0,
28
+ "eos_token_id": null,
29
+ "exponential_decay_length_penalty": null,
30
+ "finetuning_task": null,
31
+ "forced_bos_token_id": null,
32
+ "forced_eos_token_id": null,
33
+ "hidden_act": "relu",
34
+ "hidden_sizes": [
35
+ 256,
36
+ 512,
37
+ 1024,
38
+ 2048
39
+ ],
40
+ "id2label": {
41
+ "0": "LABEL_0",
42
+ "1": "LABEL_1"
43
+ },
44
+ "is_decoder": false,
45
+ "is_encoder_decoder": false,
46
+ "label2id": {
47
+ "LABEL_0": 0,
48
+ "LABEL_1": 1
49
+ },
50
+ "layer_type": "bottleneck",
51
+ "length_penalty": 1.0,
52
+ "max_length": 20,
53
+ "min_length": 0,
54
+ "model_type": "resnet",
55
+ "no_repeat_ngram_size": 0,
56
+ "num_beam_groups": 1,
57
+ "num_beams": 1,
58
+ "num_channels": 3,
59
+ "num_return_sequences": 1,
60
+ "output_attentions": false,
61
+ "output_hidden_states": false,
62
+ "output_scores": false,
63
+ "pad_token_id": null,
64
+ "prefix": null,
65
+ "problem_type": null,
66
+ "pruned_heads": {},
67
+ "remove_invalid_values": false,
68
+ "repetition_penalty": 1.0,
69
+ "return_dict": true,
70
+ "return_dict_in_generate": false,
71
+ "sep_token_id": null,
72
+ "suppress_tokens": null,
73
+ "task_specific_params": null,
74
+ "temperature": 1.0,
75
+ "tf_legacy_loss": false,
76
+ "tie_encoder_decoder": false,
77
+ "tie_word_embeddings": true,
78
+ "tokenizer_class": null,
79
+ "top_k": 50,
80
+ "top_p": 1.0,
81
+ "torch_dtype": null,
82
+ "torchscript": false,
83
+ "transformers_version": "4.25.0.dev0",
84
+ "typical_p": 1.0,
85
+ "use_bfloat16": false
86
+ },
87
+ "cross_entropy_weight": 1.0,
88
+ "decoder_config": {
89
+ "_name_or_path": "",
90
+ "activation_dropout": 0.0,
91
+ "activation_function": "relu",
92
+ "add_cross_attention": false,
93
+ "architectures": null,
94
+ "attention_dropout": 0.0,
95
+ "auxiliary_loss": false,
96
+ "backbone": "resnet50",
97
+ "bad_words_ids": null,
98
+ "bbox_cost": 5,
99
+ "bbox_loss_coefficient": 5,
100
+ "begin_suppress_tokens": null,
101
+ "bos_token_id": null,
102
+ "chunk_size_feed_forward": 0,
103
+ "class_cost": 1,
104
+ "cross_attention_hidden_size": null,
105
+ "d_model": 256,
106
+ "decoder_attention_heads": 8,
107
+ "decoder_ffn_dim": 2048,
108
+ "decoder_layerdrop": 0.0,
109
+ "decoder_layers": 6,
110
+ "decoder_start_token_id": null,
111
+ "dice_loss_coefficient": 1,
112
+ "dilation": false,
113
+ "diversity_penalty": 0.0,
114
+ "do_sample": false,
115
+ "dropout": 0.1,
116
+ "early_stopping": false,
117
+ "encoder_attention_heads": 8,
118
+ "encoder_ffn_dim": 2048,
119
+ "encoder_layerdrop": 0.0,
120
+ "encoder_layers": 6,
121
+ "encoder_no_repeat_ngram_size": 0,
122
+ "eos_coefficient": 0.1,
123
+ "eos_token_id": null,
124
+ "exponential_decay_length_penalty": null,
125
+ "finetuning_task": null,
126
+ "forced_bos_token_id": null,
127
+ "forced_eos_token_id": null,
128
+ "giou_cost": 2,
129
+ "giou_loss_coefficient": 2,
130
+ "id2label": {
131
+ "0": "LABEL_0",
132
+ "1": "LABEL_1"
133
+ },
134
+ "init_std": 0.02,
135
+ "init_xavier_std": 1.0,
136
+ "is_decoder": false,
137
+ "is_encoder_decoder": true,
138
+ "label2id": {
139
+ "LABEL_0": 0,
140
+ "LABEL_1": 1
141
+ },
142
+ "length_penalty": 1.0,
143
+ "mask_loss_coefficient": 1,
144
+ "max_length": 20,
145
+ "max_position_embeddings": 1024,
146
+ "min_length": 0,
147
+ "model_type": "detr",
148
+ "no_repeat_ngram_size": 0,
149
+ "num_beam_groups": 1,
150
+ "num_beams": 1,
151
+ "num_channels": 3,
152
+ "num_hidden_layers": 6,
153
+ "num_queries": 100,
154
+ "num_return_sequences": 1,
155
+ "output_attentions": false,
156
+ "output_hidden_states": false,
157
+ "output_scores": false,
158
+ "pad_token_id": null,
159
+ "position_embedding_type": "sine",
160
+ "prefix": null,
161
+ "problem_type": null,
162
+ "pruned_heads": {},
163
+ "remove_invalid_values": false,
164
+ "repetition_penalty": 1.0,
165
+ "return_dict": true,
166
+ "return_dict_in_generate": false,
167
+ "scale_embedding": false,
168
+ "sep_token_id": null,
169
+ "suppress_tokens": null,
170
+ "task_specific_params": null,
171
+ "temperature": 1.0,
172
+ "tf_legacy_loss": false,
173
+ "tie_encoder_decoder": false,
174
+ "tie_word_embeddings": true,
175
+ "tokenizer_class": null,
176
+ "top_k": 50,
177
+ "top_p": 1.0,
178
+ "torch_dtype": null,
179
+ "torchscript": false,
180
+ "transformers_version": "4.25.0.dev0",
181
+ "typical_p": 1.0,
182
+ "use_bfloat16": false,
183
+ "use_pretrained_backbone": true
184
+ },
185
+ "dice_weight": 1.0,
186
+ "fpn_feature_size": 256,
187
+ "id2label": {
188
+ "0": "LABEL_0",
189
+ "1": "LABEL_1",
190
+ "2": "LABEL_2",
191
+ "3": "LABEL_3",
192
+ "4": "LABEL_4",
193
+ "5": "LABEL_5",
194
+ "6": "LABEL_6",
195
+ "7": "LABEL_7",
196
+ "8": "LABEL_8",
197
+ "9": "LABEL_9",
198
+ "10": "LABEL_10",
199
+ "11": "LABEL_11",
200
+ "12": "LABEL_12",
201
+ "13": "LABEL_13",
202
+ "14": "LABEL_14",
203
+ "15": "LABEL_15",
204
+ "16": "LABEL_16",
205
+ "17": "LABEL_17",
206
+ "18": "LABEL_18",
207
+ "19": "LABEL_19",
208
+ "20": "LABEL_20",
209
+ "21": "LABEL_21",
210
+ "22": "LABEL_22",
211
+ "23": "LABEL_23",
212
+ "24": "LABEL_24",
213
+ "25": "LABEL_25",
214
+ "26": "LABEL_26",
215
+ "27": "LABEL_27",
216
+ "28": "LABEL_28",
217
+ "29": "LABEL_29",
218
+ "30": "LABEL_30",
219
+ "31": "LABEL_31",
220
+ "32": "LABEL_32",
221
+ "33": "LABEL_33",
222
+ "34": "LABEL_34",
223
+ "35": "LABEL_35",
224
+ "36": "LABEL_36",
225
+ "37": "LABEL_37",
226
+ "38": "LABEL_38",
227
+ "39": "LABEL_39",
228
+ "40": "LABEL_40",
229
+ "41": "LABEL_41",
230
+ "42": "LABEL_42",
231
+ "43": "LABEL_43",
232
+ "44": "LABEL_44",
233
+ "45": "LABEL_45",
234
+ "46": "LABEL_46",
235
+ "47": "LABEL_47",
236
+ "48": "LABEL_48",
237
+ "49": "LABEL_49",
238
+ "50": "LABEL_50",
239
+ "51": "LABEL_51",
240
+ "52": "LABEL_52",
241
+ "53": "LABEL_53",
242
+ "54": "LABEL_54",
243
+ "55": "LABEL_55",
244
+ "56": "LABEL_56",
245
+ "57": "LABEL_57",
246
+ "58": "LABEL_58",
247
+ "59": "LABEL_59",
248
+ "60": "LABEL_60",
249
+ "61": "LABEL_61",
250
+ "62": "LABEL_62",
251
+ "63": "LABEL_63",
252
+ "64": "LABEL_64",
253
+ "65": "LABEL_65",
254
+ "66": "LABEL_66",
255
+ "67": "LABEL_67",
256
+ "68": "LABEL_68",
257
+ "69": "LABEL_69",
258
+ "70": "LABEL_70",
259
+ "71": "LABEL_71",
260
+ "72": "LABEL_72",
261
+ "73": "LABEL_73",
262
+ "74": "LABEL_74",
263
+ "75": "LABEL_75",
264
+ "76": "LABEL_76",
265
+ "77": "LABEL_77",
266
+ "78": "LABEL_78",
267
+ "79": "LABEL_79",
268
+ "80": "LABEL_80",
269
+ "81": "LABEL_81",
270
+ "82": "LABEL_82",
271
+ "83": "LABEL_83",
272
+ "84": "LABEL_84",
273
+ "85": "LABEL_85",
274
+ "86": "LABEL_86",
275
+ "87": "LABEL_87",
276
+ "88": "LABEL_88",
277
+ "89": "LABEL_89",
278
+ "90": "LABEL_90",
279
+ "91": "LABEL_91",
280
+ "92": "LABEL_92",
281
+ "93": "LABEL_93",
282
+ "94": "LABEL_94",
283
+ "95": "LABEL_95",
284
+ "96": "LABEL_96",
285
+ "97": "LABEL_97",
286
+ "98": "LABEL_98",
287
+ "99": "LABEL_99",
288
+ "100": "LABEL_100",
289
+ "101": "LABEL_101",
290
+ "102": "LABEL_102",
291
+ "103": "LABEL_103",
292
+ "104": "LABEL_104",
293
+ "105": "LABEL_105",
294
+ "106": "LABEL_106",
295
+ "107": "LABEL_107",
296
+ "108": "LABEL_108",
297
+ "109": "LABEL_109",
298
+ "110": "LABEL_110",
299
+ "111": "LABEL_111",
300
+ "112": "LABEL_112",
301
+ "113": "LABEL_113",
302
+ "114": "LABEL_114",
303
+ "115": "LABEL_115",
304
+ "116": "LABEL_116",
305
+ "117": "LABEL_117",
306
+ "118": "LABEL_118",
307
+ "119": "LABEL_119",
308
+ "120": "LABEL_120",
309
+ "121": "LABEL_121",
310
+ "122": "LABEL_122",
311
+ "123": "LABEL_123",
312
+ "124": "LABEL_124",
313
+ "125": "LABEL_125",
314
+ "126": "LABEL_126",
315
+ "127": "LABEL_127",
316
+ "128": "LABEL_128",
317
+ "129": "LABEL_129",
318
+ "130": "LABEL_130",
319
+ "131": "LABEL_131",
320
+ "132": "LABEL_132",
321
+ "133": "LABEL_133",
322
+ "134": "LABEL_134",
323
+ "135": "LABEL_135",
324
+ "136": "LABEL_136",
325
+ "137": "LABEL_137",
326
+ "138": "LABEL_138",
327
+ "139": "LABEL_139",
328
+ "140": "LABEL_140",
329
+ "141": "LABEL_141",
330
+ "142": "LABEL_142",
331
+ "143": "LABEL_143",
332
+ "144": "LABEL_144",
333
+ "145": "LABEL_145",
334
+ "146": "LABEL_146",
335
+ "147": "LABEL_147",
336
+ "148": "LABEL_148",
337
+ "149": "LABEL_149"
338
+ },
339
+ "init_std": 0.02,
340
+ "init_xavier_std": 1.0,
341
+ "label2id": {
342
+ "LABEL_0": 0,
343
+ "LABEL_1": 1,
344
+ "LABEL_10": 10,
345
+ "LABEL_100": 100,
346
+ "LABEL_101": 101,
347
+ "LABEL_102": 102,
348
+ "LABEL_103": 103,
349
+ "LABEL_104": 104,
350
+ "LABEL_105": 105,
351
+ "LABEL_106": 106,
352
+ "LABEL_107": 107,
353
+ "LABEL_108": 108,
354
+ "LABEL_109": 109,
355
+ "LABEL_11": 11,
356
+ "LABEL_110": 110,
357
+ "LABEL_111": 111,
358
+ "LABEL_112": 112,
359
+ "LABEL_113": 113,
360
+ "LABEL_114": 114,
361
+ "LABEL_115": 115,
362
+ "LABEL_116": 116,
363
+ "LABEL_117": 117,
364
+ "LABEL_118": 118,
365
+ "LABEL_119": 119,
366
+ "LABEL_12": 12,
367
+ "LABEL_120": 120,
368
+ "LABEL_121": 121,
369
+ "LABEL_122": 122,
370
+ "LABEL_123": 123,
371
+ "LABEL_124": 124,
372
+ "LABEL_125": 125,
373
+ "LABEL_126": 126,
374
+ "LABEL_127": 127,
375
+ "LABEL_128": 128,
376
+ "LABEL_129": 129,
377
+ "LABEL_13": 13,
378
+ "LABEL_130": 130,
379
+ "LABEL_131": 131,
380
+ "LABEL_132": 132,
381
+ "LABEL_133": 133,
382
+ "LABEL_134": 134,
383
+ "LABEL_135": 135,
384
+ "LABEL_136": 136,
385
+ "LABEL_137": 137,
386
+ "LABEL_138": 138,
387
+ "LABEL_139": 139,
388
+ "LABEL_14": 14,
389
+ "LABEL_140": 140,
390
+ "LABEL_141": 141,
391
+ "LABEL_142": 142,
392
+ "LABEL_143": 143,
393
+ "LABEL_144": 144,
394
+ "LABEL_145": 145,
395
+ "LABEL_146": 146,
396
+ "LABEL_147": 147,
397
+ "LABEL_148": 148,
398
+ "LABEL_149": 149,
399
+ "LABEL_15": 15,
400
+ "LABEL_16": 16,
401
+ "LABEL_17": 17,
402
+ "LABEL_18": 18,
403
+ "LABEL_19": 19,
404
+ "LABEL_2": 2,
405
+ "LABEL_20": 20,
406
+ "LABEL_21": 21,
407
+ "LABEL_22": 22,
408
+ "LABEL_23": 23,
409
+ "LABEL_24": 24,
410
+ "LABEL_25": 25,
411
+ "LABEL_26": 26,
412
+ "LABEL_27": 27,
413
+ "LABEL_28": 28,
414
+ "LABEL_29": 29,
415
+ "LABEL_3": 3,
416
+ "LABEL_30": 30,
417
+ "LABEL_31": 31,
418
+ "LABEL_32": 32,
419
+ "LABEL_33": 33,
420
+ "LABEL_34": 34,
421
+ "LABEL_35": 35,
422
+ "LABEL_36": 36,
423
+ "LABEL_37": 37,
424
+ "LABEL_38": 38,
425
+ "LABEL_39": 39,
426
+ "LABEL_4": 4,
427
+ "LABEL_40": 40,
428
+ "LABEL_41": 41,
429
+ "LABEL_42": 42,
430
+ "LABEL_43": 43,
431
+ "LABEL_44": 44,
432
+ "LABEL_45": 45,
433
+ "LABEL_46": 46,
434
+ "LABEL_47": 47,
435
+ "LABEL_48": 48,
436
+ "LABEL_49": 49,
437
+ "LABEL_5": 5,
438
+ "LABEL_50": 50,
439
+ "LABEL_51": 51,
440
+ "LABEL_52": 52,
441
+ "LABEL_53": 53,
442
+ "LABEL_54": 54,
443
+ "LABEL_55": 55,
444
+ "LABEL_56": 56,
445
+ "LABEL_57": 57,
446
+ "LABEL_58": 58,
447
+ "LABEL_59": 59,
448
+ "LABEL_6": 6,
449
+ "LABEL_60": 60,
450
+ "LABEL_61": 61,
451
+ "LABEL_62": 62,
452
+ "LABEL_63": 63,
453
+ "LABEL_64": 64,
454
+ "LABEL_65": 65,
455
+ "LABEL_66": 66,
456
+ "LABEL_67": 67,
457
+ "LABEL_68": 68,
458
+ "LABEL_69": 69,
459
+ "LABEL_7": 7,
460
+ "LABEL_70": 70,
461
+ "LABEL_71": 71,
462
+ "LABEL_72": 72,
463
+ "LABEL_73": 73,
464
+ "LABEL_74": 74,
465
+ "LABEL_75": 75,
466
+ "LABEL_76": 76,
467
+ "LABEL_77": 77,
468
+ "LABEL_78": 78,
469
+ "LABEL_79": 79,
470
+ "LABEL_8": 8,
471
+ "LABEL_80": 80,
472
+ "LABEL_81": 81,
473
+ "LABEL_82": 82,
474
+ "LABEL_83": 83,
475
+ "LABEL_84": 84,
476
+ "LABEL_85": 85,
477
+ "LABEL_86": 86,
478
+ "LABEL_87": 87,
479
+ "LABEL_88": 88,
480
+ "LABEL_89": 89,
481
+ "LABEL_9": 9,
482
+ "LABEL_90": 90,
483
+ "LABEL_91": 91,
484
+ "LABEL_92": 92,
485
+ "LABEL_93": 93,
486
+ "LABEL_94": 94,
487
+ "LABEL_95": 95,
488
+ "LABEL_96": 96,
489
+ "LABEL_97": 97,
490
+ "LABEL_98": 98,
491
+ "LABEL_99": 99
492
+ },
493
+ "mask_feature_size": 256,
494
+ "mask_weight": 20.0,
495
+ "model_type": "maskformer",
496
+ "no_object_weight": 0.1,
497
+ "num_attention_heads": 8,
498
+ "num_hidden_layers": 6,
499
+ "output_auxiliary_logits": null,
500
+ "torch_dtype": "float32",
501
+ "transformers_version": null,
502
+ "use_auxiliary_loss": false
503
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c18e0887f8ffe7a5269d14c942fe61755fd88d567517625a424a168138d74eb6
3
+ size 165626563