adham77701
commited on
Commit
•
0ba74bd
1
Parent(s):
d25e767
Upload MaskFormerForInstanceSegmentation
Browse files- README.md +199 -0
- config.json +224 -0
- 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,224 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/maskformer-swin-base-ade",
|
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": "unlabeled",
|
55 |
+
"1": "PV"
|
56 |
+
},
|
57 |
+
"init_std": 0.02,
|
58 |
+
"init_xavier_std": 1.0,
|
59 |
+
"label2id": {
|
60 |
+
"animal": 126,
|
61 |
+
"arcade machine": 78,
|
62 |
+
"armchair": 30,
|
63 |
+
"awning, sunshade, sunblind": 86,
|
64 |
+
"bag": 115,
|
65 |
+
"ball": 119,
|
66 |
+
"bannister, banister, balustrade, balusters, handrail": 95,
|
67 |
+
"bar": 77,
|
68 |
+
"barrel, cask": 111,
|
69 |
+
"base, pedestal, stand": 40,
|
70 |
+
"basket, handbasket": 112,
|
71 |
+
"bed": 7,
|
72 |
+
"bench": 69,
|
73 |
+
"bicycle": 127,
|
74 |
+
"blanket, cover": 131,
|
75 |
+
"blind, screen": 63,
|
76 |
+
"boat": 76,
|
77 |
+
"book": 67,
|
78 |
+
"bookcase": 62,
|
79 |
+
"booth": 88,
|
80 |
+
"bottle": 98,
|
81 |
+
"box": 41,
|
82 |
+
"bridge, span": 61,
|
83 |
+
"buffet, counter, sideboard": 99,
|
84 |
+
"building": 1,
|
85 |
+
"bulletin board": 144,
|
86 |
+
"bus": 80,
|
87 |
+
"cabinet": 10,
|
88 |
+
"canopy": 106,
|
89 |
+
"car": 20,
|
90 |
+
"case, display case, showcase, vitrine": 55,
|
91 |
+
"ceiling": 5,
|
92 |
+
"chair": 19,
|
93 |
+
"chandelier": 85,
|
94 |
+
"chest of drawers, chest, bureau, dresser": 44,
|
95 |
+
"clock": 148,
|
96 |
+
"clothes": 92,
|
97 |
+
"coffee table": 64,
|
98 |
+
"column, pillar": 42,
|
99 |
+
"computer": 74,
|
100 |
+
"conveyer belt, conveyor belt, conveyer, conveyor, transporter": 105,
|
101 |
+
"counter": 45,
|
102 |
+
"countertop": 70,
|
103 |
+
"cradle": 117,
|
104 |
+
"crt screen": 141,
|
105 |
+
"curtain": 18,
|
106 |
+
"cushion": 39,
|
107 |
+
"desk": 33,
|
108 |
+
"dirt track": 91,
|
109 |
+
"dishwasher": 129,
|
110 |
+
"door": 14,
|
111 |
+
"earth, ground": 13,
|
112 |
+
"escalator, moving staircase, moving stairway": 96,
|
113 |
+
"falls": 113,
|
114 |
+
"fan": 139,
|
115 |
+
"fence": 32,
|
116 |
+
"field": 29,
|
117 |
+
"fireplace": 49,
|
118 |
+
"flag": 149,
|
119 |
+
"floor": 3,
|
120 |
+
"flower": 66,
|
121 |
+
"food, solid food": 120,
|
122 |
+
"fountain": 104,
|
123 |
+
"glass, drinking glass": 147,
|
124 |
+
"grandstand, covered stand": 51,
|
125 |
+
"grass": 9,
|
126 |
+
"hill": 68,
|
127 |
+
"hood, exhaust hood": 133,
|
128 |
+
"house": 25,
|
129 |
+
"hovel, hut, hutch, shack, shanty": 79,
|
130 |
+
"kitchen island": 73,
|
131 |
+
"lake": 128,
|
132 |
+
"lamp": 36,
|
133 |
+
"land, ground, soil": 94,
|
134 |
+
"light": 82,
|
135 |
+
"microwave": 124,
|
136 |
+
"minibike, motorbike": 116,
|
137 |
+
"mirror": 27,
|
138 |
+
"monitor": 143,
|
139 |
+
"mountain, mount": 16,
|
140 |
+
"ottoman, pouf, pouffe, puff, hassock": 97,
|
141 |
+
"oven": 118,
|
142 |
+
"painting, picture": 22,
|
143 |
+
"palm, palm tree": 72,
|
144 |
+
"path": 52,
|
145 |
+
"person": 12,
|
146 |
+
"pier": 140,
|
147 |
+
"pillow": 57,
|
148 |
+
"plane": 90,
|
149 |
+
"plant": 17,
|
150 |
+
"plate": 142,
|
151 |
+
"plaything, toy": 108,
|
152 |
+
"pole": 93,
|
153 |
+
"pool": 109,
|
154 |
+
"pool table, billiard table, snooker table": 56,
|
155 |
+
"poster, posting, placard, notice, bill, card": 100,
|
156 |
+
"pot": 125,
|
157 |
+
"radiator": 146,
|
158 |
+
"rail": 38,
|
159 |
+
"refrigerator, icebox": 50,
|
160 |
+
"river": 60,
|
161 |
+
"road, route": 6,
|
162 |
+
"rock, stone": 34,
|
163 |
+
"rug": 28,
|
164 |
+
"runway": 54,
|
165 |
+
"sand": 46,
|
166 |
+
"sconce": 134,
|
167 |
+
"screen": 130,
|
168 |
+
"screen door, screen": 58,
|
169 |
+
"sculpture": 132,
|
170 |
+
"sea": 26,
|
171 |
+
"seat": 31,
|
172 |
+
"shelf": 24,
|
173 |
+
"ship": 103,
|
174 |
+
"shower": 145,
|
175 |
+
"sidewalk, pavement": 11,
|
176 |
+
"signboard, sign": 43,
|
177 |
+
"sink": 47,
|
178 |
+
"sky": 2,
|
179 |
+
"skyscraper": 48,
|
180 |
+
"sofa": 23,
|
181 |
+
"stage": 101,
|
182 |
+
"stairs": 53,
|
183 |
+
"stairway, staircase": 59,
|
184 |
+
"step, stair": 121,
|
185 |
+
"stool": 110,
|
186 |
+
"stove": 71,
|
187 |
+
"street lamp": 87,
|
188 |
+
"swivel chair": 75,
|
189 |
+
"table": 15,
|
190 |
+
"tank, storage tank": 122,
|
191 |
+
"tent": 114,
|
192 |
+
"toilet, can, commode, crapper, pot, potty, stool, throne": 65,
|
193 |
+
"towel": 81,
|
194 |
+
"tower": 84,
|
195 |
+
"trade name": 123,
|
196 |
+
"traffic light": 136,
|
197 |
+
"trash can": 138,
|
198 |
+
"tray": 137,
|
199 |
+
"tree": 4,
|
200 |
+
"truck": 83,
|
201 |
+
"tub": 37,
|
202 |
+
"tv": 89,
|
203 |
+
"van": 102,
|
204 |
+
"vase": 135,
|
205 |
+
"wall": 0,
|
206 |
+
"wardrobe, closet, press": 35,
|
207 |
+
"washer, automatic washer, washing machine": 107,
|
208 |
+
"water": 21,
|
209 |
+
"window ": 8
|
210 |
+
},
|
211 |
+
"mask_feature_size": 256,
|
212 |
+
"mask_weight": 20.0,
|
213 |
+
"model_type": "maskformer",
|
214 |
+
"no_object_weight": 0.1,
|
215 |
+
"num_attention_heads": 8,
|
216 |
+
"num_hidden_layers": 6,
|
217 |
+
"num_queries": 100,
|
218 |
+
"output_auxiliary_logits": null,
|
219 |
+
"torch_dtype": "float32",
|
220 |
+
"transformers_version": "4.43.0.dev0",
|
221 |
+
"use_auxiliary_loss": false,
|
222 |
+
"use_pretrained_backbone": false,
|
223 |
+
"use_timm_backbone": false
|
224 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:772a16aeb9b25697b7be863a5de156759f6404861668f9f0aad1560835030072
|
3 |
+
size 411253576
|