yusx-swapp commited on
Commit
2b0e562
1 Parent(s): 1b96f97

Upload SwinForImageClassification

Browse files
Files changed (3) hide show
  1. README.md +201 -0
  2. config.json +269 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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]
200
+
201
+
config.json ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "ckpts/swinv2-cifar100-single/metric_best_model/",
3
+ "architectures": [
4
+ "SwinForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "depths": [
8
+ 2,
9
+ 2,
10
+ 18,
11
+ 2
12
+ ],
13
+ "drop_path_rate": 0.1,
14
+ "elastic_config": {
15
+ "atten_out_space": [
16
+ 512
17
+ ],
18
+ "inter_hidden_space": [
19
+ 2048,
20
+ 1536,
21
+ 1024
22
+ ],
23
+ "residual_hidden_space": [
24
+ "None"
25
+ ]
26
+ },
27
+ "embed_dim": 128,
28
+ "encoder_stride": 32,
29
+ "hidden_act": "gelu",
30
+ "hidden_dropout_prob": 0.0,
31
+ "hidden_size": 1024,
32
+ "id2label": {
33
+ "0": "apple",
34
+ "1": "aquarium_fish",
35
+ "2": "baby",
36
+ "3": "bear",
37
+ "4": "beaver",
38
+ "5": "bed",
39
+ "6": "bee",
40
+ "7": "beetle",
41
+ "8": "bicycle",
42
+ "9": "bottle",
43
+ "10": "bowl",
44
+ "11": "boy",
45
+ "12": "bridge",
46
+ "13": "bus",
47
+ "14": "butterfly",
48
+ "15": "camel",
49
+ "16": "can",
50
+ "17": "castle",
51
+ "18": "caterpillar",
52
+ "19": "cattle",
53
+ "20": "chair",
54
+ "21": "chimpanzee",
55
+ "22": "clock",
56
+ "23": "cloud",
57
+ "24": "cockroach",
58
+ "25": "couch",
59
+ "26": "cra",
60
+ "27": "crocodile",
61
+ "28": "cup",
62
+ "29": "dinosaur",
63
+ "30": "dolphin",
64
+ "31": "elephant",
65
+ "32": "flatfish",
66
+ "33": "forest",
67
+ "34": "fox",
68
+ "35": "girl",
69
+ "36": "hamster",
70
+ "37": "house",
71
+ "38": "kangaroo",
72
+ "39": "keyboard",
73
+ "40": "lamp",
74
+ "41": "lawn_mower",
75
+ "42": "leopard",
76
+ "43": "lion",
77
+ "44": "lizard",
78
+ "45": "lobster",
79
+ "46": "man",
80
+ "47": "maple_tree",
81
+ "48": "motorcycle",
82
+ "49": "mountain",
83
+ "50": "mouse",
84
+ "51": "mushroom",
85
+ "52": "oak_tree",
86
+ "53": "orange",
87
+ "54": "orchid",
88
+ "55": "otter",
89
+ "56": "palm_tree",
90
+ "57": "pear",
91
+ "58": "pickup_truck",
92
+ "59": "pine_tree",
93
+ "60": "plain",
94
+ "61": "plate",
95
+ "62": "poppy",
96
+ "63": "porcupine",
97
+ "64": "possum",
98
+ "65": "rabbit",
99
+ "66": "raccoon",
100
+ "67": "ray",
101
+ "68": "road",
102
+ "69": "rocket",
103
+ "70": "rose",
104
+ "71": "sea",
105
+ "72": "seal",
106
+ "73": "shark",
107
+ "74": "shrew",
108
+ "75": "skunk",
109
+ "76": "skyscraper",
110
+ "77": "snail",
111
+ "78": "snake",
112
+ "79": "spider",
113
+ "80": "squirrel",
114
+ "81": "streetcar",
115
+ "82": "sunflower",
116
+ "83": "sweet_pepper",
117
+ "84": "table",
118
+ "85": "tank",
119
+ "86": "telephone",
120
+ "87": "television",
121
+ "88": "tiger",
122
+ "89": "tractor",
123
+ "90": "train",
124
+ "91": "trout",
125
+ "92": "tulip",
126
+ "93": "turtle",
127
+ "94": "wardrobe",
128
+ "95": "whale",
129
+ "96": "willow_tree",
130
+ "97": "wolf",
131
+ "98": "woman",
132
+ "99": "worm"
133
+ },
134
+ "image_size": 224,
135
+ "initializer_range": 0.02,
136
+ "label2id": {
137
+ "apple": "0",
138
+ "aquarium_fish": "1",
139
+ "baby": "2",
140
+ "bear": "3",
141
+ "beaver": "4",
142
+ "bed": "5",
143
+ "bee": "6",
144
+ "beetle": "7",
145
+ "bicycle": "8",
146
+ "bottle": "9",
147
+ "bowl": "10",
148
+ "boy": "11",
149
+ "bridge": "12",
150
+ "bus": "13",
151
+ "butterfly": "14",
152
+ "camel": "15",
153
+ "can": "16",
154
+ "castle": "17",
155
+ "caterpillar": "18",
156
+ "cattle": "19",
157
+ "chair": "20",
158
+ "chimpanzee": "21",
159
+ "clock": "22",
160
+ "cloud": "23",
161
+ "cockroach": "24",
162
+ "couch": "25",
163
+ "cra": "26",
164
+ "crocodile": "27",
165
+ "cup": "28",
166
+ "dinosaur": "29",
167
+ "dolphin": "30",
168
+ "elephant": "31",
169
+ "flatfish": "32",
170
+ "forest": "33",
171
+ "fox": "34",
172
+ "girl": "35",
173
+ "hamster": "36",
174
+ "house": "37",
175
+ "kangaroo": "38",
176
+ "keyboard": "39",
177
+ "lamp": "40",
178
+ "lawn_mower": "41",
179
+ "leopard": "42",
180
+ "lion": "43",
181
+ "lizard": "44",
182
+ "lobster": "45",
183
+ "man": "46",
184
+ "maple_tree": "47",
185
+ "motorcycle": "48",
186
+ "mountain": "49",
187
+ "mouse": "50",
188
+ "mushroom": "51",
189
+ "oak_tree": "52",
190
+ "orange": "53",
191
+ "orchid": "54",
192
+ "otter": "55",
193
+ "palm_tree": "56",
194
+ "pear": "57",
195
+ "pickup_truck": "58",
196
+ "pine_tree": "59",
197
+ "plain": "60",
198
+ "plate": "61",
199
+ "poppy": "62",
200
+ "porcupine": "63",
201
+ "possum": "64",
202
+ "rabbit": "65",
203
+ "raccoon": "66",
204
+ "ray": "67",
205
+ "road": "68",
206
+ "rocket": "69",
207
+ "rose": "70",
208
+ "sea": "71",
209
+ "seal": "72",
210
+ "shark": "73",
211
+ "shrew": "74",
212
+ "skunk": "75",
213
+ "skyscraper": "76",
214
+ "snail": "77",
215
+ "snake": "78",
216
+ "spider": "79",
217
+ "squirrel": "80",
218
+ "streetcar": "81",
219
+ "sunflower": "82",
220
+ "sweet_pepper": "83",
221
+ "table": "84",
222
+ "tank": "85",
223
+ "telephone": "86",
224
+ "television": "87",
225
+ "tiger": "88",
226
+ "tractor": "89",
227
+ "train": "90",
228
+ "trout": "91",
229
+ "tulip": "92",
230
+ "turtle": "93",
231
+ "wardrobe": "94",
232
+ "whale": "95",
233
+ "willow_tree": "96",
234
+ "wolf": "97",
235
+ "woman": "98",
236
+ "worm": "99"
237
+ },
238
+ "layer_norm_eps": 1e-05,
239
+ "mlp_ratio": 4.0,
240
+ "model_type": "swin",
241
+ "num_channels": 3,
242
+ "num_heads": [
243
+ 4,
244
+ 8,
245
+ 16,
246
+ 32
247
+ ],
248
+ "num_layers": 4,
249
+ "out_features": [
250
+ "stage4"
251
+ ],
252
+ "out_indices": [
253
+ 4
254
+ ],
255
+ "patch_size": 4,
256
+ "path_norm": true,
257
+ "qkv_bias": true,
258
+ "stage_names": [
259
+ "stem",
260
+ "stage1",
261
+ "stage2",
262
+ "stage3",
263
+ "stage4"
264
+ ],
265
+ "torch_dtype": "float32",
266
+ "transformers_version": "4.40.0.dev0",
267
+ "use_absolute_embeddings": false,
268
+ "window_size": 7
269
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c17df3339fc6deb0420f3b2028e1cc2b70da8040cac802f99951e2cfe9d5cb85
3
+ size 347900632