cloudwoowoo commited on
Commit
d5f016b
·
verified ·
1 Parent(s): e7ec458

Upload ViTForImageClassification

Browse files
Files changed (3) hide show
  1. README.md +199 -0
  2. config.json +356 -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,356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ViTForImageClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "dtype": "float32",
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "Abyssinian",
13
+ "1": "Afghan_hound",
14
+ "2": "African_hunting_dog",
15
+ "3": "Airedale",
16
+ "4": "American_Staffordshire_terrier",
17
+ "5": "Appenzeller",
18
+ "6": "Australian_terrier",
19
+ "7": "Bedlington_terrier",
20
+ "8": "Bengal",
21
+ "9": "Bernese_mountain_dog",
22
+ "10": "Birman",
23
+ "11": "Blenheim_spaniel",
24
+ "12": "Bombay",
25
+ "13": "Border_collie",
26
+ "14": "Border_terrier",
27
+ "15": "Boston_bull",
28
+ "16": "Bouvier_des_Flandres",
29
+ "17": "Brabancon_griffon",
30
+ "18": "British Shorthair",
31
+ "19": "Brittany_spaniel",
32
+ "20": "Cardigan",
33
+ "21": "Chesapeake_Bay_retriever",
34
+ "22": "Chihuahua",
35
+ "23": "Dandie_Dinmont",
36
+ "24": "Doberman",
37
+ "25": "Egyptian Mau",
38
+ "26": "English_foxhound",
39
+ "27": "English_setter",
40
+ "28": "English_springer",
41
+ "29": "EntleBucher",
42
+ "30": "Eskimo_dog",
43
+ "31": "French_bulldog",
44
+ "32": "German_shepherd",
45
+ "33": "German_short-haired_pointer",
46
+ "34": "Gordon_setter",
47
+ "35": "Great_Dane",
48
+ "36": "Great_Pyrenees",
49
+ "37": "Greater_Swiss_Mountain_dog",
50
+ "38": "Ibizan_hound",
51
+ "39": "Irish_setter",
52
+ "40": "Irish_terrier",
53
+ "41": "Irish_water_spaniel",
54
+ "42": "Irish_wolfhound",
55
+ "43": "Italian_greyhound",
56
+ "44": "Japanese_spaniel",
57
+ "45": "Kerry_blue_terrier",
58
+ "46": "Labrador_retriever",
59
+ "47": "Lakeland_terrier",
60
+ "48": "Leonberg",
61
+ "49": "Lhasa",
62
+ "50": "Maine Coon",
63
+ "51": "Maltese_dog",
64
+ "52": "Mexican_hairless",
65
+ "53": "Newfoundland",
66
+ "54": "Norfolk_terrier",
67
+ "55": "Norwegian_elkhound",
68
+ "56": "Norwich_terrier",
69
+ "57": "Old_English_sheepdog",
70
+ "58": "Pekinese",
71
+ "59": "Pembroke",
72
+ "60": "Persian",
73
+ "61": "Pomeranian",
74
+ "62": "Ragdoll",
75
+ "63": "Rhodesian_ridgeback",
76
+ "64": "Rottweiler",
77
+ "65": "Russian Blue",
78
+ "66": "Saint_Bernard",
79
+ "67": "Saluki",
80
+ "68": "Samoyed",
81
+ "69": "Scotch_terrier",
82
+ "70": "Scottish_deerhound",
83
+ "71": "Sealyham_terrier",
84
+ "72": "Shetland_sheepdog",
85
+ "73": "Shih-Tzu",
86
+ "74": "Siamese",
87
+ "75": "Siberian_husky",
88
+ "76": "Sphynx",
89
+ "77": "Staffordshire_bullterrier",
90
+ "78": "Sussex_spaniel",
91
+ "79": "Tibetan_mastiff",
92
+ "80": "Tibetan_terrier",
93
+ "81": "Walker_hound",
94
+ "82": "Weimaraner",
95
+ "83": "Welsh_springer_spaniel",
96
+ "84": "West_Highland_white_terrier",
97
+ "85": "Yorkshire_terrier",
98
+ "86": "affenpinscher",
99
+ "87": "american bulldog",
100
+ "88": "american pit bull terrier",
101
+ "89": "basenji",
102
+ "90": "basset",
103
+ "91": "basset hound",
104
+ "92": "beagle",
105
+ "93": "black-and-tan_coonhound",
106
+ "94": "bloodhound",
107
+ "95": "bluetick",
108
+ "96": "borzoi",
109
+ "97": "boxer",
110
+ "98": "briard",
111
+ "99": "bull_mastiff",
112
+ "100": "butterfly",
113
+ "101": "cairn",
114
+ "102": "cat",
115
+ "103": "chicken",
116
+ "104": "chihuahua",
117
+ "105": "chow",
118
+ "106": "clumber",
119
+ "107": "cocker_spaniel",
120
+ "108": "collie",
121
+ "109": "cow",
122
+ "110": "curly-coated_retriever",
123
+ "111": "dhole",
124
+ "112": "dingo",
125
+ "113": "dog",
126
+ "114": "elephant",
127
+ "115": "english cocker spaniel",
128
+ "116": "english setter",
129
+ "117": "flat-coated_retriever",
130
+ "118": "german shorthaired",
131
+ "119": "giant_schnauzer",
132
+ "120": "golden_retriever",
133
+ "121": "great pyrenees",
134
+ "122": "groenendael",
135
+ "123": "havanese",
136
+ "124": "horse",
137
+ "125": "japanese chin",
138
+ "126": "keeshond",
139
+ "127": "kelpie",
140
+ "128": "komondor",
141
+ "129": "kuvasz",
142
+ "130": "leonberger",
143
+ "131": "malamute",
144
+ "132": "malinois",
145
+ "133": "miniature pinscher",
146
+ "134": "miniature_pinscher",
147
+ "135": "miniature_poodle",
148
+ "136": "miniature_schnauzer",
149
+ "137": "newfoundland",
150
+ "138": "otterhound",
151
+ "139": "papillon",
152
+ "140": "pomeranian",
153
+ "141": "pug",
154
+ "142": "redbone",
155
+ "143": "saint bernard",
156
+ "144": "samoyed",
157
+ "145": "schipperke",
158
+ "146": "scottish terrier",
159
+ "147": "sheep",
160
+ "148": "shiba inu",
161
+ "149": "silky_terrier",
162
+ "150": "soft-coated_wheaten_terrier",
163
+ "151": "spider",
164
+ "152": "squirrel",
165
+ "153": "staffordshire bull terrier",
166
+ "154": "standard_poodle",
167
+ "155": "standard_schnauzer",
168
+ "156": "toy_poodle",
169
+ "157": "toy_terrier",
170
+ "158": "vizsla",
171
+ "159": "wheaten terrier",
172
+ "160": "whippet",
173
+ "161": "wire-haired_fox_terrier",
174
+ "162": "yorkshire terrier"
175
+ },
176
+ "image_size": 224,
177
+ "initializer_range": 0.02,
178
+ "intermediate_size": 3072,
179
+ "label2id": {
180
+ "Abyssinian": 0,
181
+ "Afghan_hound": 1,
182
+ "African_hunting_dog": 2,
183
+ "Airedale": 3,
184
+ "American_Staffordshire_terrier": 4,
185
+ "Appenzeller": 5,
186
+ "Australian_terrier": 6,
187
+ "Bedlington_terrier": 7,
188
+ "Bengal": 8,
189
+ "Bernese_mountain_dog": 9,
190
+ "Birman": 10,
191
+ "Blenheim_spaniel": 11,
192
+ "Bombay": 12,
193
+ "Border_collie": 13,
194
+ "Border_terrier": 14,
195
+ "Boston_bull": 15,
196
+ "Bouvier_des_Flandres": 16,
197
+ "Brabancon_griffon": 17,
198
+ "British Shorthair": 18,
199
+ "Brittany_spaniel": 19,
200
+ "Cardigan": 20,
201
+ "Chesapeake_Bay_retriever": 21,
202
+ "Chihuahua": 22,
203
+ "Dandie_Dinmont": 23,
204
+ "Doberman": 24,
205
+ "Egyptian Mau": 25,
206
+ "English_foxhound": 26,
207
+ "English_setter": 27,
208
+ "English_springer": 28,
209
+ "EntleBucher": 29,
210
+ "Eskimo_dog": 30,
211
+ "French_bulldog": 31,
212
+ "German_shepherd": 32,
213
+ "German_short-haired_pointer": 33,
214
+ "Gordon_setter": 34,
215
+ "Great_Dane": 35,
216
+ "Great_Pyrenees": 36,
217
+ "Greater_Swiss_Mountain_dog": 37,
218
+ "Ibizan_hound": 38,
219
+ "Irish_setter": 39,
220
+ "Irish_terrier": 40,
221
+ "Irish_water_spaniel": 41,
222
+ "Irish_wolfhound": 42,
223
+ "Italian_greyhound": 43,
224
+ "Japanese_spaniel": 44,
225
+ "Kerry_blue_terrier": 45,
226
+ "Labrador_retriever": 46,
227
+ "Lakeland_terrier": 47,
228
+ "Leonberg": 48,
229
+ "Lhasa": 49,
230
+ "Maine Coon": 50,
231
+ "Maltese_dog": 51,
232
+ "Mexican_hairless": 52,
233
+ "Newfoundland": 53,
234
+ "Norfolk_terrier": 54,
235
+ "Norwegian_elkhound": 55,
236
+ "Norwich_terrier": 56,
237
+ "Old_English_sheepdog": 57,
238
+ "Pekinese": 58,
239
+ "Pembroke": 59,
240
+ "Persian": 60,
241
+ "Pomeranian": 61,
242
+ "Ragdoll": 62,
243
+ "Rhodesian_ridgeback": 63,
244
+ "Rottweiler": 64,
245
+ "Russian Blue": 65,
246
+ "Saint_Bernard": 66,
247
+ "Saluki": 67,
248
+ "Samoyed": 68,
249
+ "Scotch_terrier": 69,
250
+ "Scottish_deerhound": 70,
251
+ "Sealyham_terrier": 71,
252
+ "Shetland_sheepdog": 72,
253
+ "Shih-Tzu": 73,
254
+ "Siamese": 74,
255
+ "Siberian_husky": 75,
256
+ "Sphynx": 76,
257
+ "Staffordshire_bullterrier": 77,
258
+ "Sussex_spaniel": 78,
259
+ "Tibetan_mastiff": 79,
260
+ "Tibetan_terrier": 80,
261
+ "Walker_hound": 81,
262
+ "Weimaraner": 82,
263
+ "Welsh_springer_spaniel": 83,
264
+ "West_Highland_white_terrier": 84,
265
+ "Yorkshire_terrier": 85,
266
+ "affenpinscher": 86,
267
+ "american bulldog": 87,
268
+ "american pit bull terrier": 88,
269
+ "basenji": 89,
270
+ "basset": 90,
271
+ "basset hound": 91,
272
+ "beagle": 92,
273
+ "black-and-tan_coonhound": 93,
274
+ "bloodhound": 94,
275
+ "bluetick": 95,
276
+ "borzoi": 96,
277
+ "boxer": 97,
278
+ "briard": 98,
279
+ "bull_mastiff": 99,
280
+ "butterfly": 100,
281
+ "cairn": 101,
282
+ "cat": 102,
283
+ "chicken": 103,
284
+ "chihuahua": 104,
285
+ "chow": 105,
286
+ "clumber": 106,
287
+ "cocker_spaniel": 107,
288
+ "collie": 108,
289
+ "cow": 109,
290
+ "curly-coated_retriever": 110,
291
+ "dhole": 111,
292
+ "dingo": 112,
293
+ "dog": 113,
294
+ "elephant": 114,
295
+ "english cocker spaniel": 115,
296
+ "english setter": 116,
297
+ "flat-coated_retriever": 117,
298
+ "german shorthaired": 118,
299
+ "giant_schnauzer": 119,
300
+ "golden_retriever": 120,
301
+ "great pyrenees": 121,
302
+ "groenendael": 122,
303
+ "havanese": 123,
304
+ "horse": 124,
305
+ "japanese chin": 125,
306
+ "keeshond": 126,
307
+ "kelpie": 127,
308
+ "komondor": 128,
309
+ "kuvasz": 129,
310
+ "leonberger": 130,
311
+ "malamute": 131,
312
+ "malinois": 132,
313
+ "miniature pinscher": 133,
314
+ "miniature_pinscher": 134,
315
+ "miniature_poodle": 135,
316
+ "miniature_schnauzer": 136,
317
+ "newfoundland": 137,
318
+ "otterhound": 138,
319
+ "papillon": 139,
320
+ "pomeranian": 140,
321
+ "pug": 141,
322
+ "redbone": 142,
323
+ "saint bernard": 143,
324
+ "samoyed": 144,
325
+ "schipperke": 145,
326
+ "scottish terrier": 146,
327
+ "sheep": 147,
328
+ "shiba inu": 148,
329
+ "silky_terrier": 149,
330
+ "soft-coated_wheaten_terrier": 150,
331
+ "spider": 151,
332
+ "squirrel": 152,
333
+ "staffordshire bull terrier": 153,
334
+ "standard_poodle": 154,
335
+ "standard_schnauzer": 155,
336
+ "toy_poodle": 156,
337
+ "toy_terrier": 157,
338
+ "vizsla": 158,
339
+ "wheaten terrier": 159,
340
+ "whippet": 160,
341
+ "wire-haired_fox_terrier": 161,
342
+ "yorkshire terrier": 162
343
+ },
344
+ "layer_norm_eps": 1e-12,
345
+ "model_type": "vit",
346
+ "num_attention_heads": 12,
347
+ "num_channels": 3,
348
+ "num_hidden_layers": 12,
349
+ "patch_size": 16,
350
+ "pooler_act": "tanh",
351
+ "pooler_output_size": 768,
352
+ "problem_type": "single_label_classification",
353
+ "qkv_bias": true,
354
+ "transformers_version": "5.0.0",
355
+ "use_cache": false
356
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a67e4ae6b274db5e8457738c7b83ae6b917adc7219a05a8bdd8fc9ae807ab05c
3
+ size 343719220