akar49 commited on
Commit
df31145
1 Parent(s): 6135900

Upload MaskFormerForInstanceSegmentation

Browse files
Files changed (2) hide show
  1. config.json +389 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,389 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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",
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": "bg",
222
+ "1": "tumor"
223
+ },
224
+ "init_std": 0.02,
225
+ "init_xavier_std": 1.0,
226
+ "label2id": {
227
+ "animal": 126,
228
+ "arcade machine": 78,
229
+ "armchair": 30,
230
+ "awning, sunshade, sunblind": 86,
231
+ "bag": 115,
232
+ "ball": 119,
233
+ "bannister, banister, balustrade, balusters, handrail": 95,
234
+ "bar": 77,
235
+ "barrel, cask": 111,
236
+ "base, pedestal, stand": 40,
237
+ "basket, handbasket": 112,
238
+ "bed": 7,
239
+ "bench": 69,
240
+ "bicycle": 127,
241
+ "blanket, cover": 131,
242
+ "blind, screen": 63,
243
+ "boat": 76,
244
+ "book": 67,
245
+ "bookcase": 62,
246
+ "booth": 88,
247
+ "bottle": 98,
248
+ "box": 41,
249
+ "bridge, span": 61,
250
+ "buffet, counter, sideboard": 99,
251
+ "building": 1,
252
+ "bulletin board": 144,
253
+ "bus": 80,
254
+ "cabinet": 10,
255
+ "canopy": 106,
256
+ "car": 20,
257
+ "case, display case, showcase, vitrine": 55,
258
+ "ceiling": 5,
259
+ "chair": 19,
260
+ "chandelier": 85,
261
+ "chest of drawers, chest, bureau, dresser": 44,
262
+ "clock": 148,
263
+ "clothes": 92,
264
+ "coffee table": 64,
265
+ "column, pillar": 42,
266
+ "computer": 74,
267
+ "conveyer belt, conveyor belt, conveyer, conveyor, transporter": 105,
268
+ "counter": 45,
269
+ "countertop": 70,
270
+ "cradle": 117,
271
+ "crt screen": 141,
272
+ "curtain": 18,
273
+ "cushion": 39,
274
+ "desk": 33,
275
+ "dirt track": 91,
276
+ "dishwasher": 129,
277
+ "door": 14,
278
+ "earth, ground": 13,
279
+ "escalator, moving staircase, moving stairway": 96,
280
+ "falls": 113,
281
+ "fan": 139,
282
+ "fence": 32,
283
+ "field": 29,
284
+ "fireplace": 49,
285
+ "flag": 149,
286
+ "floor": 3,
287
+ "flower": 66,
288
+ "food, solid food": 120,
289
+ "fountain": 104,
290
+ "glass, drinking glass": 147,
291
+ "grandstand, covered stand": 51,
292
+ "grass": 9,
293
+ "hill": 68,
294
+ "hood, exhaust hood": 133,
295
+ "house": 25,
296
+ "hovel, hut, hutch, shack, shanty": 79,
297
+ "kitchen island": 73,
298
+ "lake": 128,
299
+ "lamp": 36,
300
+ "land, ground, soil": 94,
301
+ "light": 82,
302
+ "microwave": 124,
303
+ "minibike, motorbike": 116,
304
+ "mirror": 27,
305
+ "monitor": 143,
306
+ "mountain, mount": 16,
307
+ "ottoman, pouf, pouffe, puff, hassock": 97,
308
+ "oven": 118,
309
+ "painting, picture": 22,
310
+ "palm, palm tree": 72,
311
+ "path": 52,
312
+ "person": 12,
313
+ "pier": 140,
314
+ "pillow": 57,
315
+ "plane": 90,
316
+ "plant": 17,
317
+ "plate": 142,
318
+ "plaything, toy": 108,
319
+ "pole": 93,
320
+ "pool": 109,
321
+ "pool table, billiard table, snooker table": 56,
322
+ "poster, posting, placard, notice, bill, card": 100,
323
+ "pot": 125,
324
+ "radiator": 146,
325
+ "rail": 38,
326
+ "refrigerator, icebox": 50,
327
+ "river": 60,
328
+ "road, route": 6,
329
+ "rock, stone": 34,
330
+ "rug": 28,
331
+ "runway": 54,
332
+ "sand": 46,
333
+ "sconce": 134,
334
+ "screen": 130,
335
+ "screen door, screen": 58,
336
+ "sculpture": 132,
337
+ "sea": 26,
338
+ "seat": 31,
339
+ "shelf": 24,
340
+ "ship": 103,
341
+ "shower": 145,
342
+ "sidewalk, pavement": 11,
343
+ "signboard, sign": 43,
344
+ "sink": 47,
345
+ "sky": 2,
346
+ "skyscraper": 48,
347
+ "sofa": 23,
348
+ "stage": 101,
349
+ "stairs": 53,
350
+ "stairway, staircase": 59,
351
+ "step, stair": 121,
352
+ "stool": 110,
353
+ "stove": 71,
354
+ "street lamp": 87,
355
+ "swivel chair": 75,
356
+ "table": 15,
357
+ "tank, storage tank": 122,
358
+ "tent": 114,
359
+ "toilet, can, commode, crapper, pot, potty, stool, throne": 65,
360
+ "towel": 81,
361
+ "tower": 84,
362
+ "trade name": 123,
363
+ "traffic light": 136,
364
+ "trash can": 138,
365
+ "tray": 137,
366
+ "tree": 4,
367
+ "truck": 83,
368
+ "tub": 37,
369
+ "tv": 89,
370
+ "van": 102,
371
+ "vase": 135,
372
+ "wall": 0,
373
+ "wardrobe, closet, press": 35,
374
+ "washer, automatic washer, washing machine": 107,
375
+ "water": 21,
376
+ "window ": 8
377
+ },
378
+ "mask_feature_size": 256,
379
+ "mask_weight": 20.0,
380
+ "model_type": "maskformer",
381
+ "no_object_weight": 0.1,
382
+ "num_attention_heads": 8,
383
+ "num_hidden_layers": 6,
384
+ "num_queries": 100,
385
+ "output_auxiliary_logits": null,
386
+ "torch_dtype": "float32",
387
+ "transformers_version": null,
388
+ "use_auxiliary_loss": false
389
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ecf477905b636e4849d758b1438c78c078ec0e21711817e091deeb18292334c9
3
+ size 411399405