erent commited on
Commit
196e5ca
·
verified ·
1 Parent(s): 8bf16db

Upload MaskFormerForInstanceSegmentation

Browse files
Files changed (3) hide show
  1. README.md +199 -0
  2. config.json +322 -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,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "zerov2_\u00e7\u0131k\u0131yomevencedn",
3
+ "architectures": [
4
+ "MaskFormerForInstanceSegmentation"
5
+ ],
6
+ "backbone": null,
7
+ "backbone_config": {
8
+ "depths": [
9
+ 2,
10
+ 2,
11
+ 18,
12
+ 2
13
+ ],
14
+ "drop_path_rate": 0.3,
15
+ "embed_dim": 128,
16
+ "encoder_stride": 32,
17
+ "hidden_size": 1024,
18
+ "image_size": 384,
19
+ "in_channels": 3,
20
+ "model_type": "maskformer-swin",
21
+ "num_heads": [
22
+ 4,
23
+ 8,
24
+ 16,
25
+ 32
26
+ ],
27
+ "out_features": [
28
+ "stage1",
29
+ "stage2",
30
+ "stage3",
31
+ "stage4"
32
+ ],
33
+ "out_indices": [
34
+ 1,
35
+ 2,
36
+ 3,
37
+ 4
38
+ ],
39
+ "path_norm": true,
40
+ "pretrain_img_size": 384,
41
+ "window_size": 12
42
+ },
43
+ "backbone_kwargs": null,
44
+ "ce_weight": 1.0,
45
+ "cross_entropy_weight": 1.0,
46
+ "decoder_config": {
47
+ "max_position_embeddings": 1024,
48
+ "model_type": "detr",
49
+ "scale_embedding": false
50
+ },
51
+ "dice_weight": 1.0,
52
+ "fpn_feature_size": 256,
53
+ "id2label": {
54
+ "0": "bed",
55
+ "1": "windowpane",
56
+ "2": "cabinet",
57
+ "3": "person",
58
+ "4": "door",
59
+ "5": "table",
60
+ "6": "curtain",
61
+ "7": "chair",
62
+ "8": "car",
63
+ "9": "painting",
64
+ "10": "sofa",
65
+ "11": "shelf",
66
+ "12": "mirror",
67
+ "13": "armchair",
68
+ "14": "seat",
69
+ "15": "fence",
70
+ "16": "desk",
71
+ "17": "wardrobe",
72
+ "18": "lamp",
73
+ "19": "bathtub",
74
+ "20": "railing",
75
+ "21": "cushion",
76
+ "22": "box",
77
+ "23": "column",
78
+ "24": "signboard",
79
+ "25": "chest of drawers",
80
+ "26": "counter",
81
+ "27": "sink",
82
+ "28": "fireplace",
83
+ "29": "refrigerator",
84
+ "30": "stairs",
85
+ "31": "case",
86
+ "32": "pool table",
87
+ "33": "pillow",
88
+ "34": "screen door",
89
+ "35": "bookcase",
90
+ "36": "coffee table",
91
+ "37": "toilet",
92
+ "38": "flower",
93
+ "39": "book",
94
+ "40": "bench",
95
+ "41": "countertop",
96
+ "42": "stove",
97
+ "43": "palm",
98
+ "44": "kitchen island",
99
+ "45": "computer",
100
+ "46": "swivel chair",
101
+ "47": "boat",
102
+ "48": "arcade machine",
103
+ "49": "bus",
104
+ "50": "towel",
105
+ "51": "light",
106
+ "52": "truck",
107
+ "53": "chandelier",
108
+ "54": "awning",
109
+ "55": "streetlight",
110
+ "56": "booth",
111
+ "57": "television receiver",
112
+ "58": "airplane",
113
+ "59": "apparel",
114
+ "60": "pole",
115
+ "61": "bannister",
116
+ "62": "ottoman",
117
+ "63": "bottle",
118
+ "64": "van",
119
+ "65": "ship",
120
+ "66": "fountain",
121
+ "67": "washer",
122
+ "68": "plaything",
123
+ "69": "stool",
124
+ "70": "barrel",
125
+ "71": "basket",
126
+ "72": "bag",
127
+ "73": "minibike",
128
+ "74": "oven",
129
+ "75": "ball",
130
+ "76": "food",
131
+ "77": "step",
132
+ "78": "trade name",
133
+ "79": "microwave",
134
+ "80": "pot",
135
+ "81": "animal",
136
+ "82": "bicycle",
137
+ "83": "dishwasher",
138
+ "84": "screen",
139
+ "85": "sculpture",
140
+ "86": "hood",
141
+ "87": "sconce",
142
+ "88": "vase",
143
+ "89": "traffic light",
144
+ "90": "tray",
145
+ "91": "ashcan",
146
+ "92": "fan",
147
+ "93": "plate",
148
+ "94": "monitor",
149
+ "95": "bulletin board",
150
+ "96": "radiator",
151
+ "97": "glass",
152
+ "98": "clock",
153
+ "99": "flag"
154
+ },
155
+ "init_std": 0.02,
156
+ "init_xavier_std": 1.0,
157
+ "label2id": {
158
+ "animal": 126,
159
+ "arcade machine": 78,
160
+ "armchair": 30,
161
+ "awning, sunshade, sunblind": 86,
162
+ "bag": 115,
163
+ "ball": 119,
164
+ "bannister, banister, balustrade, balusters, handrail": 95,
165
+ "bar": 77,
166
+ "barrel, cask": 111,
167
+ "base, pedestal, stand": 40,
168
+ "basket, handbasket": 112,
169
+ "bed": 7,
170
+ "bench": 69,
171
+ "bicycle": 127,
172
+ "blanket, cover": 131,
173
+ "blind, screen": 63,
174
+ "boat": 76,
175
+ "book": 67,
176
+ "bookcase": 62,
177
+ "booth": 88,
178
+ "bottle": 98,
179
+ "box": 41,
180
+ "bridge, span": 61,
181
+ "buffet, counter, sideboard": 99,
182
+ "building": 1,
183
+ "bulletin board": 144,
184
+ "bus": 80,
185
+ "cabinet": 10,
186
+ "canopy": 106,
187
+ "car": 20,
188
+ "case, display case, showcase, vitrine": 55,
189
+ "ceiling": 5,
190
+ "chair": 19,
191
+ "chandelier": 85,
192
+ "chest of drawers, chest, bureau, dresser": 44,
193
+ "clock": 148,
194
+ "clothes": 92,
195
+ "coffee table": 64,
196
+ "column, pillar": 42,
197
+ "computer": 74,
198
+ "conveyer belt, conveyor belt, conveyer, conveyor, transporter": 105,
199
+ "counter": 45,
200
+ "countertop": 70,
201
+ "cradle": 117,
202
+ "crt screen": 141,
203
+ "curtain": 18,
204
+ "cushion": 39,
205
+ "desk": 33,
206
+ "dirt track": 91,
207
+ "dishwasher": 129,
208
+ "door": 14,
209
+ "earth, ground": 13,
210
+ "escalator, moving staircase, moving stairway": 96,
211
+ "falls": 113,
212
+ "fan": 139,
213
+ "fence": 32,
214
+ "field": 29,
215
+ "fireplace": 49,
216
+ "flag": 149,
217
+ "floor": 3,
218
+ "flower": 66,
219
+ "food, solid food": 120,
220
+ "fountain": 104,
221
+ "glass, drinking glass": 147,
222
+ "grandstand, covered stand": 51,
223
+ "grass": 9,
224
+ "hill": 68,
225
+ "hood, exhaust hood": 133,
226
+ "house": 25,
227
+ "hovel, hut, hutch, shack, shanty": 79,
228
+ "kitchen island": 73,
229
+ "lake": 128,
230
+ "lamp": 36,
231
+ "land, ground, soil": 94,
232
+ "light": 82,
233
+ "microwave": 124,
234
+ "minibike, motorbike": 116,
235
+ "mirror": 27,
236
+ "monitor": 143,
237
+ "mountain, mount": 16,
238
+ "ottoman, pouf, pouffe, puff, hassock": 97,
239
+ "oven": 118,
240
+ "painting, picture": 22,
241
+ "palm, palm tree": 72,
242
+ "path": 52,
243
+ "person": 12,
244
+ "pier": 140,
245
+ "pillow": 57,
246
+ "plane": 90,
247
+ "plant": 17,
248
+ "plate": 142,
249
+ "plaything, toy": 108,
250
+ "pole": 93,
251
+ "pool": 109,
252
+ "pool table, billiard table, snooker table": 56,
253
+ "poster, posting, placard, notice, bill, card": 100,
254
+ "pot": 125,
255
+ "radiator": 146,
256
+ "rail": 38,
257
+ "refrigerator, icebox": 50,
258
+ "river": 60,
259
+ "road, route": 6,
260
+ "rock, stone": 34,
261
+ "rug": 28,
262
+ "runway": 54,
263
+ "sand": 46,
264
+ "sconce": 134,
265
+ "screen": 130,
266
+ "screen door, screen": 58,
267
+ "sculpture": 132,
268
+ "sea": 26,
269
+ "seat": 31,
270
+ "shelf": 24,
271
+ "ship": 103,
272
+ "shower": 145,
273
+ "sidewalk, pavement": 11,
274
+ "signboard, sign": 43,
275
+ "sink": 47,
276
+ "sky": 2,
277
+ "skyscraper": 48,
278
+ "sofa": 23,
279
+ "stage": 101,
280
+ "stairs": 53,
281
+ "stairway, staircase": 59,
282
+ "step, stair": 121,
283
+ "stool": 110,
284
+ "stove": 71,
285
+ "street lamp": 87,
286
+ "swivel chair": 75,
287
+ "table": 15,
288
+ "tank, storage tank": 122,
289
+ "tent": 114,
290
+ "toilet, can, commode, crapper, pot, potty, stool, throne": 65,
291
+ "towel": 81,
292
+ "tower": 84,
293
+ "trade name": 123,
294
+ "traffic light": 136,
295
+ "trash can": 138,
296
+ "tray": 137,
297
+ "tree": 4,
298
+ "truck": 83,
299
+ "tub": 37,
300
+ "tv": 89,
301
+ "van": 102,
302
+ "vase": 135,
303
+ "wall": 0,
304
+ "wardrobe, closet, press": 35,
305
+ "washer, automatic washer, washing machine": 107,
306
+ "water": 21,
307
+ "window ": 8
308
+ },
309
+ "mask_feature_size": 256,
310
+ "mask_weight": 20.0,
311
+ "model_type": "maskformer",
312
+ "no_object_weight": 0.1,
313
+ "num_attention_heads": 8,
314
+ "num_hidden_layers": 6,
315
+ "num_queries": 100,
316
+ "output_auxiliary_logits": null,
317
+ "torch_dtype": "float32",
318
+ "transformers_version": "4.42.4",
319
+ "use_auxiliary_loss": false,
320
+ "use_pretrained_backbone": false,
321
+ "use_timm_backbone": false
322
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:329ada17939f3c2fd7ae35adc93e45532adb34c6d6dfc47c2c9f148aada42c2a
3
+ size 411354720