anonauthors commited on
Commit
3696b15
1 Parent(s): 6c3b717

Upload SwinForImageClassification

Browse files
Files changed (3) hide show
  1. README.md +199 -0
  2. config.json +256 -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,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/swin-base-patch4-window7-224-in22k",
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
+ "embed_dim": 128,
15
+ "encoder_stride": 32,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.0,
18
+ "hidden_size": 1024,
19
+ "id2label": {
20
+ "0": "707-320",
21
+ "1": "727-200",
22
+ "2": "737-200",
23
+ "3": "737-300",
24
+ "4": "737-400",
25
+ "5": "737-500",
26
+ "6": "737-600",
27
+ "7": "737-700",
28
+ "8": "737-800",
29
+ "9": "737-900",
30
+ "10": "747-100",
31
+ "11": "747-200",
32
+ "12": "747-300",
33
+ "13": "747-400",
34
+ "14": "757-200",
35
+ "15": "757-300",
36
+ "16": "767-200",
37
+ "17": "767-300",
38
+ "18": "767-400",
39
+ "19": "777-200",
40
+ "20": "777-300",
41
+ "21": "A300B4",
42
+ "22": "A310",
43
+ "23": "A318",
44
+ "24": "A319",
45
+ "25": "A320",
46
+ "26": "A321",
47
+ "27": "A330-200",
48
+ "28": "A330-300",
49
+ "29": "A340-200",
50
+ "30": "A340-300",
51
+ "31": "A340-500",
52
+ "32": "A340-600",
53
+ "33": "A380",
54
+ "34": "ATR-42",
55
+ "35": "ATR-72",
56
+ "36": "An-12",
57
+ "37": "BAE 146-200",
58
+ "38": "BAE 146-300",
59
+ "39": "BAE-125",
60
+ "40": "Beechcraft 1900",
61
+ "41": "Boeing 717",
62
+ "42": "C-130",
63
+ "43": "C-47",
64
+ "44": "CRJ-200",
65
+ "45": "CRJ-700",
66
+ "46": "CRJ-900",
67
+ "47": "Cessna 172",
68
+ "48": "Cessna 208",
69
+ "49": "Cessna 525",
70
+ "50": "Cessna 560",
71
+ "51": "Challenger 600",
72
+ "52": "DC-10",
73
+ "53": "DC-3",
74
+ "54": "DC-6",
75
+ "55": "DC-8",
76
+ "56": "DC-9-30",
77
+ "57": "DH-82",
78
+ "58": "DHC-1",
79
+ "59": "DHC-6",
80
+ "60": "DHC-8-100",
81
+ "61": "DHC-8-300",
82
+ "62": "DR-400",
83
+ "63": "Dornier 328",
84
+ "64": "E-170",
85
+ "65": "E-190",
86
+ "66": "E-195",
87
+ "67": "EMB-120",
88
+ "68": "ERJ 135",
89
+ "69": "ERJ 145",
90
+ "70": "Embraer Legacy 600",
91
+ "71": "Eurofighter Typhoon",
92
+ "72": "F-16A/B",
93
+ "73": "F/A-18",
94
+ "74": "Falcon 2000",
95
+ "75": "Falcon 900",
96
+ "76": "Fokker 100",
97
+ "77": "Fokker 50",
98
+ "78": "Fokker 70",
99
+ "79": "Global Express",
100
+ "80": "Gulfstream IV",
101
+ "81": "Gulfstream V",
102
+ "82": "Hawk T1",
103
+ "83": "Il-76",
104
+ "84": "L-1011",
105
+ "85": "MD-11",
106
+ "86": "MD-80",
107
+ "87": "MD-87",
108
+ "88": "MD-90",
109
+ "89": "Metroliner",
110
+ "90": "Model B200",
111
+ "91": "PA-28",
112
+ "92": "SR-20",
113
+ "93": "Saab 2000",
114
+ "94": "Saab 340",
115
+ "95": "Spitfire",
116
+ "96": "Tornado",
117
+ "97": "Tu-134",
118
+ "98": "Tu-154",
119
+ "99": "Yak-42"
120
+ },
121
+ "image_size": 224,
122
+ "initializer_range": 0.02,
123
+ "label2id": {
124
+ "707-320": 0,
125
+ "727-200": 1,
126
+ "737-200": 2,
127
+ "737-300": 3,
128
+ "737-400": 4,
129
+ "737-500": 5,
130
+ "737-600": 6,
131
+ "737-700": 7,
132
+ "737-800": 8,
133
+ "737-900": 9,
134
+ "747-100": 10,
135
+ "747-200": 11,
136
+ "747-300": 12,
137
+ "747-400": 13,
138
+ "757-200": 14,
139
+ "757-300": 15,
140
+ "767-200": 16,
141
+ "767-300": 17,
142
+ "767-400": 18,
143
+ "777-200": 19,
144
+ "777-300": 20,
145
+ "A300B4": 21,
146
+ "A310": 22,
147
+ "A318": 23,
148
+ "A319": 24,
149
+ "A320": 25,
150
+ "A321": 26,
151
+ "A330-200": 27,
152
+ "A330-300": 28,
153
+ "A340-200": 29,
154
+ "A340-300": 30,
155
+ "A340-500": 31,
156
+ "A340-600": 32,
157
+ "A380": 33,
158
+ "ATR-42": 34,
159
+ "ATR-72": 35,
160
+ "An-12": 36,
161
+ "BAE 146-200": 37,
162
+ "BAE 146-300": 38,
163
+ "BAE-125": 39,
164
+ "Beechcraft 1900": 40,
165
+ "Boeing 717": 41,
166
+ "C-130": 42,
167
+ "C-47": 43,
168
+ "CRJ-200": 44,
169
+ "CRJ-700": 45,
170
+ "CRJ-900": 46,
171
+ "Cessna 172": 47,
172
+ "Cessna 208": 48,
173
+ "Cessna 525": 49,
174
+ "Cessna 560": 50,
175
+ "Challenger 600": 51,
176
+ "DC-10": 52,
177
+ "DC-3": 53,
178
+ "DC-6": 54,
179
+ "DC-8": 55,
180
+ "DC-9-30": 56,
181
+ "DH-82": 57,
182
+ "DHC-1": 58,
183
+ "DHC-6": 59,
184
+ "DHC-8-100": 60,
185
+ "DHC-8-300": 61,
186
+ "DR-400": 62,
187
+ "Dornier 328": 63,
188
+ "E-170": 64,
189
+ "E-190": 65,
190
+ "E-195": 66,
191
+ "EMB-120": 67,
192
+ "ERJ 135": 68,
193
+ "ERJ 145": 69,
194
+ "Embraer Legacy 600": 70,
195
+ "Eurofighter Typhoon": 71,
196
+ "F-16A/B": 72,
197
+ "F/A-18": 73,
198
+ "Falcon 2000": 74,
199
+ "Falcon 900": 75,
200
+ "Fokker 100": 76,
201
+ "Fokker 50": 77,
202
+ "Fokker 70": 78,
203
+ "Global Express": 79,
204
+ "Gulfstream IV": 80,
205
+ "Gulfstream V": 81,
206
+ "Hawk T1": 82,
207
+ "Il-76": 83,
208
+ "L-1011": 84,
209
+ "MD-11": 85,
210
+ "MD-80": 86,
211
+ "MD-87": 87,
212
+ "MD-90": 88,
213
+ "Metroliner": 89,
214
+ "Model B200": 90,
215
+ "PA-28": 91,
216
+ "SR-20": 92,
217
+ "Saab 2000": 93,
218
+ "Saab 340": 94,
219
+ "Spitfire": 95,
220
+ "Tornado": 96,
221
+ "Tu-134": 97,
222
+ "Tu-154": 98,
223
+ "Yak-42": 99
224
+ },
225
+ "layer_norm_eps": 1e-05,
226
+ "mlp_ratio": 4.0,
227
+ "model_type": "swin",
228
+ "num_channels": 3,
229
+ "num_heads": [
230
+ 4,
231
+ 8,
232
+ 16,
233
+ 32
234
+ ],
235
+ "num_layers": 4,
236
+ "out_features": [
237
+ "stage4"
238
+ ],
239
+ "out_indices": [
240
+ 4
241
+ ],
242
+ "patch_size": 4,
243
+ "path_norm": true,
244
+ "qkv_bias": true,
245
+ "stage_names": [
246
+ "stem",
247
+ "stage1",
248
+ "stage2",
249
+ "stage3",
250
+ "stage4"
251
+ ],
252
+ "torch_dtype": "float32",
253
+ "transformers_version": "4.38.2",
254
+ "use_absolute_embeddings": false,
255
+ "window_size": 7
256
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e659db4c99c39e602056a3d92667e1db1ae3c2ae827909ff9004d7171e75c9e8
3
+ size 347900632