mouadenna commited on
Commit
191106a
·
verified ·
1 Parent(s): 5425377

Upload Mask2FormerForUniversalSegmentation

Browse files
Files changed (3) hide show
  1. README.md +199 -0
  2. config.json +235 -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,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "mouadenna/mask2former-swin-base-ade-PV-segmentation-66iou",
3
+ "activation_function": "relu",
4
+ "architectures": [
5
+ "Mask2FormerForUniversalSegmentation"
6
+ ],
7
+ "backbone": null,
8
+ "backbone_config": {
9
+ "depths": [
10
+ 2,
11
+ 2,
12
+ 18,
13
+ 2
14
+ ],
15
+ "drop_path_rate": 0.3,
16
+ "embed_dim": 128,
17
+ "hidden_size": 1024,
18
+ "model_type": "swin",
19
+ "num_heads": [
20
+ 4,
21
+ 8,
22
+ 16,
23
+ 32
24
+ ],
25
+ "out_features": [
26
+ "stage1",
27
+ "stage2",
28
+ "stage3",
29
+ "stage4"
30
+ ],
31
+ "out_indices": [
32
+ 1,
33
+ 2,
34
+ 3,
35
+ 4
36
+ ],
37
+ "path_norm": true,
38
+ "window_size": 12
39
+ },
40
+ "backbone_kwargs": null,
41
+ "class_weight": 2.0,
42
+ "common_stride": 4,
43
+ "decoder_layers": 10,
44
+ "dice_weight": 5.0,
45
+ "dim_feedforward": 2048,
46
+ "dropout": 0.0,
47
+ "encoder_feedforward_dim": 1024,
48
+ "encoder_layers": 6,
49
+ "enforce_input_proj": false,
50
+ "enforce_input_projection": false,
51
+ "feature_size": 256,
52
+ "feature_strides": [
53
+ 4,
54
+ 8,
55
+ 16,
56
+ 32
57
+ ],
58
+ "hidden_dim": 256,
59
+ "id2label": {
60
+ "0": "unlabeled",
61
+ "1": "PV"
62
+ },
63
+ "ignore_value": 255,
64
+ "importance_sample_ratio": 0.75,
65
+ "init_std": 0.02,
66
+ "init_xavier_std": 1.0,
67
+ "label2id": {
68
+ "airplane": 90,
69
+ "animal": 126,
70
+ "apparel": 92,
71
+ "arcade machine": 78,
72
+ "armchair": 30,
73
+ "ashcan": 138,
74
+ "awning": 86,
75
+ "bag": 115,
76
+ "ball": 119,
77
+ "bannister": 95,
78
+ "bar": 77,
79
+ "barrel": 111,
80
+ "base": 40,
81
+ "basket": 112,
82
+ "bathtub": 37,
83
+ "bed ": 7,
84
+ "bench": 69,
85
+ "bicycle": 127,
86
+ "blanket": 131,
87
+ "blind": 63,
88
+ "boat": 76,
89
+ "book": 67,
90
+ "bookcase": 62,
91
+ "booth": 88,
92
+ "bottle": 98,
93
+ "box": 41,
94
+ "bridge": 61,
95
+ "buffet": 99,
96
+ "building": 1,
97
+ "bulletin board": 144,
98
+ "bus": 80,
99
+ "cabinet": 10,
100
+ "canopy": 106,
101
+ "car": 20,
102
+ "case": 55,
103
+ "ceiling": 5,
104
+ "chair": 19,
105
+ "chandelier": 85,
106
+ "chest of drawers": 44,
107
+ "clock": 148,
108
+ "coffee table": 64,
109
+ "column": 42,
110
+ "computer": 74,
111
+ "conveyer belt": 105,
112
+ "counter": 45,
113
+ "countertop": 70,
114
+ "cradle": 117,
115
+ "crt screen": 141,
116
+ "curtain": 18,
117
+ "cushion": 39,
118
+ "desk": 33,
119
+ "dirt track": 91,
120
+ "dishwasher": 129,
121
+ "door": 14,
122
+ "earth": 13,
123
+ "escalator": 96,
124
+ "fan": 139,
125
+ "fence": 32,
126
+ "field": 29,
127
+ "fireplace": 49,
128
+ "flag": 149,
129
+ "floor": 3,
130
+ "flower": 66,
131
+ "food": 120,
132
+ "fountain": 104,
133
+ "glass": 147,
134
+ "grandstand": 51,
135
+ "grass": 9,
136
+ "hill": 68,
137
+ "hood": 133,
138
+ "house": 25,
139
+ "hovel": 79,
140
+ "kitchen island": 73,
141
+ "lake": 128,
142
+ "lamp": 36,
143
+ "land": 94,
144
+ "light": 82,
145
+ "microwave": 124,
146
+ "minibike": 116,
147
+ "mirror": 27,
148
+ "monitor": 143,
149
+ "mountain": 16,
150
+ "ottoman": 97,
151
+ "oven": 118,
152
+ "painting": 22,
153
+ "palm": 72,
154
+ "path": 52,
155
+ "person": 12,
156
+ "pier": 140,
157
+ "pillow": 57,
158
+ "plant": 17,
159
+ "plate": 142,
160
+ "plaything": 108,
161
+ "pole": 93,
162
+ "pool table": 56,
163
+ "poster": 100,
164
+ "pot": 125,
165
+ "radiator": 146,
166
+ "railing": 38,
167
+ "refrigerator": 50,
168
+ "river": 60,
169
+ "road": 6,
170
+ "rock": 34,
171
+ "rug": 28,
172
+ "runway": 54,
173
+ "sand": 46,
174
+ "sconce": 134,
175
+ "screen": 130,
176
+ "screen door": 58,
177
+ "sculpture": 132,
178
+ "sea": 26,
179
+ "seat": 31,
180
+ "shelf": 24,
181
+ "ship": 103,
182
+ "shower": 145,
183
+ "sidewalk": 11,
184
+ "signboard": 43,
185
+ "sink": 47,
186
+ "sky": 2,
187
+ "skyscraper": 48,
188
+ "sofa": 23,
189
+ "stage": 101,
190
+ "stairs": 53,
191
+ "stairway": 59,
192
+ "step": 121,
193
+ "stool": 110,
194
+ "stove": 71,
195
+ "streetlight": 87,
196
+ "swimming pool": 109,
197
+ "swivel chair": 75,
198
+ "table": 15,
199
+ "tank": 122,
200
+ "television receiver": 89,
201
+ "tent": 114,
202
+ "toilet": 65,
203
+ "towel": 81,
204
+ "tower": 84,
205
+ "trade name": 123,
206
+ "traffic light": 136,
207
+ "tray": 137,
208
+ "tree": 4,
209
+ "truck": 83,
210
+ "van": 102,
211
+ "vase": 135,
212
+ "wall": 0,
213
+ "wardrobe": 35,
214
+ "washer": 107,
215
+ "water": 21,
216
+ "waterfall": 113,
217
+ "windowpane": 8
218
+ },
219
+ "mask_feature_size": 256,
220
+ "mask_weight": 5.0,
221
+ "model_type": "mask2former",
222
+ "no_object_weight": 0.1,
223
+ "num_attention_heads": 8,
224
+ "num_hidden_layers": 10,
225
+ "num_queries": 100,
226
+ "output_auxiliary_logits": null,
227
+ "oversample_ratio": 3.0,
228
+ "pre_norm": false,
229
+ "torch_dtype": "float32",
230
+ "train_num_points": 12544,
231
+ "transformers_version": "4.43.0.dev0",
232
+ "use_auxiliary_loss": true,
233
+ "use_pretrained_backbone": false,
234
+ "use_timm_backbone": false
235
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22ea980c517b1696859428caf3c266ddfb8f33f547872251bf8a4a09c7d3bd3c
3
+ size 431632856