ParthUpadhyay1 commited on
Commit
880e247
·
verified ·
1 Parent(s): 1d79c38

Upload MaskFormerForInstanceSegmentation

Browse files
Files changed (3) hide show
  1. README.md +199 -0
  2. config.json +371 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,199 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags: []
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+ This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
config.json ADDED
@@ -0,0 +1,371 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MaskFormerForInstanceSegmentation"
4
+ ],
5
+ "backbone": null,
6
+ "backbone_config": {
7
+ "depths": [
8
+ 2,
9
+ 2,
10
+ 18,
11
+ 2
12
+ ],
13
+ "drop_path_rate": 0.3,
14
+ "embed_dim": 128,
15
+ "encoder_stride": 32,
16
+ "hidden_size": 1024,
17
+ "image_size": 384,
18
+ "in_channels": 3,
19
+ "model_type": "maskformer-swin",
20
+ "num_heads": [
21
+ 4,
22
+ 8,
23
+ 16,
24
+ 32
25
+ ],
26
+ "out_features": [
27
+ "stage1",
28
+ "stage2",
29
+ "stage3",
30
+ "stage4"
31
+ ],
32
+ "out_indices": [
33
+ 1,
34
+ 2,
35
+ 3,
36
+ 4
37
+ ],
38
+ "path_norm": true,
39
+ "pretrain_img_size": 384,
40
+ "window_size": 12
41
+ },
42
+ "backbone_kwargs": null,
43
+ "ce_weight": 1.0,
44
+ "cross_entropy_weight": 1.0,
45
+ "decoder_config": {
46
+ "max_position_embeddings": 1024,
47
+ "model_type": "detr",
48
+ "scale_embedding": false
49
+ },
50
+ "dice_weight": 1.0,
51
+ "fpn_feature_size": 256,
52
+ "id2label": {
53
+ "0": "wall",
54
+ "1": "building",
55
+ "2": "sky",
56
+ "3": "floor",
57
+ "4": "tree",
58
+ "5": "ceiling",
59
+ "6": "road, route",
60
+ "7": "bed",
61
+ "8": "window ",
62
+ "9": "grass",
63
+ "10": "cabinet",
64
+ "11": "sidewalk, pavement",
65
+ "12": "person",
66
+ "13": "earth, ground",
67
+ "14": "door",
68
+ "15": "table",
69
+ "16": "mountain, mount",
70
+ "17": "plant",
71
+ "18": "curtain",
72
+ "19": "chair",
73
+ "20": "car",
74
+ "21": "water",
75
+ "22": "painting, picture",
76
+ "23": "sofa",
77
+ "24": "shelf",
78
+ "25": "house",
79
+ "26": "sea",
80
+ "27": "mirror",
81
+ "28": "rug",
82
+ "29": "field",
83
+ "30": "armchair",
84
+ "31": "seat",
85
+ "32": "fence",
86
+ "33": "desk",
87
+ "34": "rock, stone",
88
+ "35": "wardrobe, closet, press",
89
+ "36": "lamp",
90
+ "37": "tub",
91
+ "38": "rail",
92
+ "39": "cushion",
93
+ "40": "base, pedestal, stand",
94
+ "41": "box",
95
+ "42": "column, pillar",
96
+ "43": "signboard, sign",
97
+ "44": "chest of drawers, chest, bureau, dresser",
98
+ "45": "counter",
99
+ "46": "sand",
100
+ "47": "sink",
101
+ "48": "skyscraper",
102
+ "49": "fireplace",
103
+ "50": "refrigerator, icebox",
104
+ "51": "grandstand, covered stand",
105
+ "52": "path",
106
+ "53": "stairs",
107
+ "54": "runway",
108
+ "55": "case, display case, showcase, vitrine",
109
+ "56": "pool table, billiard table, snooker table",
110
+ "57": "pillow",
111
+ "58": "screen door, screen",
112
+ "59": "stairway, staircase",
113
+ "60": "river",
114
+ "61": "bridge, span",
115
+ "62": "bookcase",
116
+ "63": "blind, screen",
117
+ "64": "coffee table",
118
+ "65": "toilet, can, commode, crapper, pot, potty, stool, throne",
119
+ "66": "flower",
120
+ "67": "book",
121
+ "68": "hill",
122
+ "69": "bench",
123
+ "70": "countertop",
124
+ "71": "stove",
125
+ "72": "palm, palm tree",
126
+ "73": "kitchen island",
127
+ "74": "computer",
128
+ "75": "swivel chair",
129
+ "76": "boat",
130
+ "77": "bar",
131
+ "78": "arcade machine",
132
+ "79": "hovel, hut, hutch, shack, shanty",
133
+ "80": "bus",
134
+ "81": "towel",
135
+ "82": "light",
136
+ "83": "truck",
137
+ "84": "tower",
138
+ "85": "chandelier",
139
+ "86": "awning, sunshade, sunblind",
140
+ "87": "street lamp",
141
+ "88": "booth",
142
+ "89": "tv",
143
+ "90": "plane",
144
+ "91": "dirt track",
145
+ "92": "clothes",
146
+ "93": "pole",
147
+ "94": "land, ground, soil",
148
+ "95": "bannister, banister, balustrade, balusters, handrail",
149
+ "96": "escalator, moving staircase, moving stairway",
150
+ "97": "ottoman, pouf, pouffe, puff, hassock",
151
+ "98": "bottle",
152
+ "99": "buffet, counter, sideboard",
153
+ "100": "poster, posting, placard, notice, bill, card",
154
+ "101": "stage",
155
+ "102": "van",
156
+ "103": "ship",
157
+ "104": "fountain",
158
+ "105": "conveyer belt, conveyor belt, conveyer, conveyor, transporter",
159
+ "106": "canopy",
160
+ "107": "washer, automatic washer, washing machine",
161
+ "108": "plaything, toy",
162
+ "109": "pool",
163
+ "110": "stool",
164
+ "111": "barrel, cask",
165
+ "112": "basket, handbasket",
166
+ "113": "falls",
167
+ "114": "tent",
168
+ "115": "bag",
169
+ "116": "minibike, motorbike",
170
+ "117": "cradle",
171
+ "118": "oven",
172
+ "119": "ball",
173
+ "120": "food, solid food",
174
+ "121": "step, stair",
175
+ "122": "tank, storage tank",
176
+ "123": "trade name",
177
+ "124": "microwave",
178
+ "125": "pot",
179
+ "126": "animal",
180
+ "127": "bicycle",
181
+ "128": "lake",
182
+ "129": "dishwasher",
183
+ "130": "screen",
184
+ "131": "blanket, cover",
185
+ "132": "sculpture",
186
+ "133": "hood, exhaust hood",
187
+ "134": "sconce",
188
+ "135": "vase",
189
+ "136": "traffic light",
190
+ "137": "tray",
191
+ "138": "trash can",
192
+ "139": "fan",
193
+ "140": "pier",
194
+ "141": "crt screen",
195
+ "142": "plate",
196
+ "143": "monitor",
197
+ "144": "bulletin board",
198
+ "145": "shower",
199
+ "146": "radiator",
200
+ "147": "glass, drinking glass",
201
+ "148": "clock",
202
+ "149": "flag"
203
+ },
204
+ "init_std": 0.02,
205
+ "init_xavier_std": 1.0,
206
+ "label2id": {
207
+ "animal": 126,
208
+ "arcade machine": 78,
209
+ "armchair": 30,
210
+ "awning, sunshade, sunblind": 86,
211
+ "bag": 115,
212
+ "ball": 119,
213
+ "bannister, banister, balustrade, balusters, handrail": 95,
214
+ "bar": 77,
215
+ "barrel, cask": 111,
216
+ "base, pedestal, stand": 40,
217
+ "basket, handbasket": 112,
218
+ "bed": 7,
219
+ "bench": 69,
220
+ "bicycle": 127,
221
+ "blanket, cover": 131,
222
+ "blind, screen": 63,
223
+ "boat": 76,
224
+ "book": 67,
225
+ "bookcase": 62,
226
+ "booth": 88,
227
+ "bottle": 98,
228
+ "box": 41,
229
+ "bridge, span": 61,
230
+ "buffet, counter, sideboard": 99,
231
+ "building": 1,
232
+ "bulletin board": 144,
233
+ "bus": 80,
234
+ "cabinet": 10,
235
+ "canopy": 106,
236
+ "car": 20,
237
+ "case, display case, showcase, vitrine": 55,
238
+ "ceiling": 5,
239
+ "chair": 19,
240
+ "chandelier": 85,
241
+ "chest of drawers, chest, bureau, dresser": 44,
242
+ "clock": 148,
243
+ "clothes": 92,
244
+ "coffee table": 64,
245
+ "column, pillar": 42,
246
+ "computer": 74,
247
+ "conveyer belt, conveyor belt, conveyer, conveyor, transporter": 105,
248
+ "counter": 45,
249
+ "countertop": 70,
250
+ "cradle": 117,
251
+ "crt screen": 141,
252
+ "curtain": 18,
253
+ "cushion": 39,
254
+ "desk": 33,
255
+ "dirt track": 91,
256
+ "dishwasher": 129,
257
+ "door": 14,
258
+ "earth, ground": 13,
259
+ "escalator, moving staircase, moving stairway": 96,
260
+ "falls": 113,
261
+ "fan": 139,
262
+ "fence": 32,
263
+ "field": 29,
264
+ "fireplace": 49,
265
+ "flag": 149,
266
+ "floor": 3,
267
+ "flower": 66,
268
+ "food, solid food": 120,
269
+ "fountain": 104,
270
+ "glass, drinking glass": 147,
271
+ "grandstand, covered stand": 51,
272
+ "grass": 9,
273
+ "hill": 68,
274
+ "hood, exhaust hood": 133,
275
+ "house": 25,
276
+ "hovel, hut, hutch, shack, shanty": 79,
277
+ "kitchen island": 73,
278
+ "lake": 128,
279
+ "lamp": 36,
280
+ "land, ground, soil": 94,
281
+ "light": 82,
282
+ "microwave": 124,
283
+ "minibike, motorbike": 116,
284
+ "mirror": 27,
285
+ "monitor": 143,
286
+ "mountain, mount": 16,
287
+ "ottoman, pouf, pouffe, puff, hassock": 97,
288
+ "oven": 118,
289
+ "painting, picture": 22,
290
+ "palm, palm tree": 72,
291
+ "path": 52,
292
+ "person": 12,
293
+ "pier": 140,
294
+ "pillow": 57,
295
+ "plane": 90,
296
+ "plant": 17,
297
+ "plate": 142,
298
+ "plaything, toy": 108,
299
+ "pole": 93,
300
+ "pool": 109,
301
+ "pool table, billiard table, snooker table": 56,
302
+ "poster, posting, placard, notice, bill, card": 100,
303
+ "pot": 125,
304
+ "radiator": 146,
305
+ "rail": 38,
306
+ "refrigerator, icebox": 50,
307
+ "river": 60,
308
+ "road, route": 6,
309
+ "rock, stone": 34,
310
+ "rug": 28,
311
+ "runway": 54,
312
+ "sand": 46,
313
+ "sconce": 134,
314
+ "screen": 130,
315
+ "screen door, screen": 58,
316
+ "sculpture": 132,
317
+ "sea": 26,
318
+ "seat": 31,
319
+ "shelf": 24,
320
+ "ship": 103,
321
+ "shower": 145,
322
+ "sidewalk, pavement": 11,
323
+ "signboard, sign": 43,
324
+ "sink": 47,
325
+ "sky": 2,
326
+ "skyscraper": 48,
327
+ "sofa": 23,
328
+ "stage": 101,
329
+ "stairs": 53,
330
+ "stairway, staircase": 59,
331
+ "step, stair": 121,
332
+ "stool": 110,
333
+ "stove": 71,
334
+ "street lamp": 87,
335
+ "swivel chair": 75,
336
+ "table": 15,
337
+ "tank, storage tank": 122,
338
+ "tent": 114,
339
+ "toilet, can, commode, crapper, pot, potty, stool, throne": 65,
340
+ "towel": 81,
341
+ "tower": 84,
342
+ "trade name": 123,
343
+ "traffic light": 136,
344
+ "trash can": 138,
345
+ "tray": 137,
346
+ "tree": 4,
347
+ "truck": 83,
348
+ "tub": 37,
349
+ "tv": 89,
350
+ "van": 102,
351
+ "vase": 135,
352
+ "wall": 0,
353
+ "wardrobe, closet, press": 35,
354
+ "washer, automatic washer, washing machine": 107,
355
+ "water": 21,
356
+ "window ": 8
357
+ },
358
+ "mask_feature_size": 256,
359
+ "mask_weight": 20.0,
360
+ "model_type": "maskformer",
361
+ "no_object_weight": 0.1,
362
+ "num_attention_heads": 8,
363
+ "num_hidden_layers": 6,
364
+ "num_queries": 100,
365
+ "output_auxiliary_logits": null,
366
+ "torch_dtype": "float32",
367
+ "transformers_version": "4.43.0.dev0",
368
+ "use_auxiliary_loss": false,
369
+ "use_pretrained_backbone": false,
370
+ "use_timm_backbone": false
371
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6f029857d7e180f397f01f6812e66e843e18974c0484798ca8a0f2beed50186
3
+ size 411406320