dsaint31 commited on
Commit
878134e
ยท
1 Parent(s): 99bd6cd

fix README.md

Browse files
Files changed (1) hide show
  1. README.md +90 -19
README.md CHANGED
@@ -1,64 +1,77 @@
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
@@ -67,10 +80,31 @@ This is the model card of a ๐Ÿค— transformers model that has been pushed on the
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
@@ -79,6 +113,9 @@ Use the code below to get started with the model.
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
@@ -87,12 +124,17 @@ Use the code below to get started with the model.
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
 
@@ -110,6 +152,9 @@ Use the code below to get started with the model.
110
 
111
  <!-- This should link to a Dataset Card if possible. -->
112
 
 
 
 
113
  [More Information Needed]
114
 
115
  #### Factors
@@ -142,6 +187,9 @@ Use the code below to get started with the model.
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]
@@ -154,6 +202,9 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
154
 
155
  ### Model Architecture and Objective
156
 
 
 
 
157
  [More Information Needed]
158
 
159
  ### Compute Infrastructure
@@ -162,18 +213,34 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
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:**
@@ -192,8 +259,12 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
192
 
193
  ## Model Card Authors [optional]
194
 
 
 
195
  [More Information Needed]
196
 
197
  ## Model Card Contact
198
 
199
- [More Information Needed]
 
 
 
1
  ---
2
  library_name: transformers
3
+ tags: [transformers, pipeline, vision, image-classification, vit, imagenet-1k]
4
  ---
5
 
6
+ # Model Card for tmp-pl-image-classification
 
 
7
 
8
+ ์ด ์ €์žฅ์†Œ๋Š” ๐Ÿค— Transformers์˜ `pipeline()` ๋™์ž‘์„ ์ดํ•ดํ•˜๊ณ  ์—ฐ์Šตํ•˜๊ธฐ ์œ„ํ•œ **ํ•™์Šต์šฉ(pipeline practice) ๋ชจ๋ธ repo**์ž…๋‹ˆ๋‹ค.
9
+ ๋ชจ๋ธ ๊ฐ€์ค‘์น˜๋Š” ์›๋ณธ ๋ชจ๋ธ **`google/vit-base-patch16-224`**์„ ๊ทธ๋Œ€๋กœ ์‚ฌ์šฉํ•˜๋ฉฐ, ์ถ”๊ฐ€์ ์ธ fine-tuning์€ ์ˆ˜ํ–‰ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.
10
 
11
+ ---
12
 
13
  ## Model Details
14
 
15
  ### Model Description
16
 
17
  <!-- Provide a longer summary of what this model is. -->
18
+ ๋ณธ ๋ชจ๋ธ์€ **Vision Transformer(ViT)** ๊ธฐ๋ฐ˜ ์ด๋ฏธ์ง€ ๋ถ„๋ฅ˜ ๋ชจ๋ธ์„ `pipeline("image-classification")` ํ˜•ํƒœ๋กœ
19
+ Hub์— ์—…๋กœ๋“œํ•˜๊ณ  ๋‹ค์‹œ ๋ถˆ๋Ÿฌ์˜ค๋Š” ์ „์ฒด ํ๋ฆ„์„ ์‹ค์Šตํ•˜๊ธฐ ์œ„ํ•ด ๊ตฌ์„ฑ๋จ.
20
 
 
21
 
22
+ - **Developed by:** Google Research (์›๋ณธ๋ชจ๋ธ)
23
+ - **Shared by [optional]:** dsaint31
24
+ - **Model type:** Image Classification (Vision Transformer)
25
+ - **Language(s) (NLP):** ํ•ด๋‹น ์—†์Œ (์ด๋ฏธ์ง€ ์ž…๋ ฅ)
26
+ - **License:** Apache-2.0
27
+ - **Finetuned from model [optional]:** google/vit-base-patch16-224 (๊ฐ€์ค‘์น˜ ๋ณ€๊ฒฝ ์—†์Œ. fine-tuning ๋ฏธ์ˆ˜ํ–‰)
 
28
 
29
  ### Model Sources [optional]
30
 
31
  <!-- Provide the basic links for the model. -->
32
 
33
+ - **Baee model Repository:** [https://huggingface.co/google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224)
34
+ - **Paper [optional]:** [Dosovitskiy et al., *An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale*, arXiv:2010.11929](https://arxiv.org/abs/2010.11929)
35
+ - **Demo [optional]:** None
36
 
37
  ## Uses
38
 
39
  <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
40
 
41
+
42
  ### Direct Use
43
 
44
  <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
45
 
46
+ - `pipeline("image-classification", model=...)` ์‚ฌ์šฉ๋ฒ• ์‹ค์Šต
47
+ - Hugging Face Hub์— pipeline ํ˜•ํƒœ๋กœ ๋ชจ๋ธ์„ ์—…๋กœ๋“œ / ๋‹ค์šด๋กœ๋“œํ•˜๋Š” ํ๋ฆ„ ์ดํ•ด
48
+ - Vision ๋ชจ๋ธ๊ณผ pipeline์˜ ๊ด€๊ณ„ ํ•™์Šต
49
 
50
  ### Downstream Use [optional]
51
 
52
  <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
53
 
54
+ - ๋ณธ repo ์ž์ฒด๋Š” downstream task๋ฅผ ์œ„ํ•œ fine-tuning์„ ๋ชฉ์ ์œผ๋กœ ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
55
+ - ํ•™์Šต ๋˜๋Š” ์„ฑ๋Šฅ ๋น„๊ต ๋ชฉ์ ์ด๋ผ๋ฉด **์›๋ณธ ๋ชจ๋ธ repo**๋ฅผ ์ง์ ‘ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.
56
 
57
  ### Out-of-Scope Use
58
 
59
  <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
60
 
61
+ - ๋ชจ๋ธ ์„ฑ๋Šฅ ํ‰๊ฐ€ ๋˜๋Š” ๋ฒค์น˜๋งˆํฌ
62
+ - ์‹ค์ œ ์„œ๋น„์Šค ํ™˜๊ฒฝ์—์„œ์˜ ๋ชจ๋ธ ๋ฐฐํฌ
63
+ - ํŠน์ • ๋„๋ฉ”์ธ(์˜๋ฃŒ, ์‚ฐ์—… ์˜์ƒ ๋“ฑ)์— ๋Œ€ํ•œ ์‹ ๋ขฐ์„ฑ ์žˆ๋Š” ์ถ”๋ก 
64
+
65
  [More Information Needed]
66
 
67
  ## Bias, Risks, and Limitations
68
 
69
  <!-- This section is meant to convey both technical and sociotechnical limitations. -->
70
 
71
+ - ๋ณธ ๋ชจ๋ธ์€ ImageNet ๊ธฐ๋ฐ˜ ๋ฐ์ดํ„ฐ๋กœ ํ•™์Šต๋œ ์ผ๋ฐ˜ ๋ชฉ์  ์ด๋ฏธ์ง€ ๋ถ„๋ฅ˜ ๋ชจ๋ธ์˜ ํŠน์„ฑ์„ ๊ทธ๋Œ€๋กœ ๊ฐ€์ง‘๋‹ˆ๋‹ค.
72
+ - ํŠน์ • ๊ฐ์ฒด, ๋ฌธํ™”์  ๋งฅ๋ฝ, ์ „๋ฌธ ๋„๋ฉ”์ธ์— ๋Œ€ํ•œ ๋ถ„๋ฅ˜ ์„ฑ๋Šฅ์€ ๋ณด์žฅ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
73
+ - ๋ณธ repo๋Š” **์—ฐ์Šต์šฉ pipeline ์ €์žฅ์†Œ**์ด๋ฏ€๋กœ ๋ชจ๋ธ์˜ ์‚ฌํšŒ์  ์˜ํ–ฅ์ด๋‚˜ ํŽธํ–ฅ ๋ถ„์„์„ ๋ชฉ์ ์œผ๋กœ ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
74
+
75
  [More Information Needed]
76
 
77
  ### Recommendations
 
80
 
81
  Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
82
 
83
+ - ์‹ค์ œ ์‚ฌ์šฉ ๋ชฉ์ ์ด ์žˆ๋Š” ๊ฒฝ์šฐ, ์›๋ณธ ๋ชจ๋ธ ์นด๋“œ(`google/vit-base-patch16-224`)์˜ ์ œํ•œ ์‚ฌํ•ญ์„ ๋ฐ˜๋“œ์‹œ ์ฐธ๊ณ ํ•˜์‹ญ์‹œ์˜ค.
84
+ - ์ด repo๋Š” ํ•™์Šต ๋ฐ ์‹ค์Šต ๋ชฉ์ ์— ํ•œํ•ด ์‚ฌ์šฉํ•˜๊ธฐ๋ฅผ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
85
+
86
  ## How to Get Started with the Model
87
 
88
  Use the code below to get started with the model.
89
 
90
+ ์•„๋ž˜ ์˜ˆ์ œ๋Š” Hugging Face `pipeline`์„ ์ด์šฉํ•ด ๋ณธ ๋ชจ๋ธ์„ ๋กœ๋“œํ•˜๊ณ  ์ด๋ฏธ์ง€๋ฅผ ๋ถ„๋ฅ˜ํ•˜๋Š” ์ตœ์†Œ ์˜ˆ์ œ์ž…๋‹ˆ๋‹ค.
91
+
92
+ ```python
93
+ from transformers import pipeline
94
+ from PIL import Image
95
+ import requests
96
+
97
+ img_url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/cats.png"
98
+ image = Image.open(requests.get(img_url, stream=True).raw)
99
+
100
+ clf = pipeline(
101
+ task="image-classification",
102
+ model="dsaint31/tmp-pl-image-classification",
103
+ )
104
+
105
+ print(clf(image))
106
+ ```
107
+
108
  [More Information Needed]
109
 
110
  ## Training Details
 
113
 
114
  <!-- 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. -->
115
 
116
+ * ๋ณธ repo์—์„œ๋Š” **์ถ”๊ฐ€ ํ•™์Šต์„ ์ˆ˜ํ–‰ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.**
117
+ * ์›๋ณธ ๋ชจ๋ธ์€ ImageNet-21k๋กœ ์‚ฌ์ „ํ•™์Šต(pretraining) ํ›„ ImageNet-1k๋กœ fine-tuning๋œ ๋ชจ๋ธ์ž…๋‹ˆ๋‹ค.
118
+
119
  [More Information Needed]
120
 
121
  ### Training Procedure
 
124
 
125
  #### Preprocessing [optional]
126
 
127
+ * ์›๋ณธ ViT ๋ชจ๋ธ์˜ ๊ธฐ๋ณธ ์ด๋ฏธ์ง€ ์ „์ฒ˜๋ฆฌ(Image Processor)๋ฅผ ๊ทธ๋Œ€๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
128
+
129
+
130
  [More Information Needed]
131
 
132
 
133
  #### Training Hyperparameters
134
 
135
+ - **Training regime:** ํ•ด๋‹น ์—†์Œ(ํ•™์Šต ๋ฏธ์ˆ˜ํ–‰) [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
136
+
137
+
138
 
139
  #### Speeds, Sizes, Times [optional]
140
 
 
152
 
153
  <!-- This should link to a Dataset Card if possible. -->
154
 
155
+ * ๋ณธ repo์—์„œ๋Š” ๋ณ„๋„์˜ ํ‰๊ฐ€๋ฅผ ์ˆ˜ํ–‰ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.
156
+ * ์„ฑ๋Šฅ ์ง€ํ‘œ๋Š” ์›๋ณธ ๋ชจ๋ธ ์นด๋“œ์˜ ํ‰๊ฐ€ ๊ฒฐ๊ณผ๋ฅผ ์ฐธ๊ณ ํ•˜์‹ญ์‹œ์˜ค.
157
+
158
  [More Information Needed]
159
 
160
  #### Factors
 
187
 
188
  <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
189
 
190
+ ๋ณธ repo์—์„œ๋Š” ํ•™์Šต์„ ์ˆ˜ํ–‰ํ•˜์ง€ ์•Š์•˜์œผ๋ฏ€๋กœ ์ถ”๊ฐ€์ ์ธ ํ™˜๊ฒฝ์  ์˜ํ–ฅ์€ ์—†์Šต๋‹ˆ๋‹ค.
191
+ * ์›๋ณธ ๋ชจ๋ธ ํ•™์Šต์— ๋Œ€ํ•œ ํ™˜๊ฒฝ ์˜ํ–ฅ์€ base model ๋ฌธ์„œ๋ฅผ ์ฐธ๊ณ ํ•˜์‹ญ์‹œ์˜ค.
192
+
193
  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).
194
 
195
  - **Hardware Type:** [More Information Needed]
 
202
 
203
  ### Model Architecture and Objective
204
 
205
+ * Vision Transformer (ViT-Base, patch size 16, input resolution 224x224)
206
+ * Objective: Image classification
207
+
208
  [More Information Needed]
209
 
210
  ### Compute Infrastructure
 
213
 
214
  #### Hardware
215
 
216
+ * ํ•ด๋‹น์—†์Œ (ํ•™์Šต ๋ฏธ์ˆ˜ํ–‰)
217
  [More Information Needed]
218
 
219
  #### Software
220
 
221
+ * Transformers
222
+ * Pillow
223
+ * PyTorch
224
+
225
  [More Information Needed]
226
 
227
  ## Citation [optional]
228
 
229
  <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
230
 
231
+ ์›๋ณธ ๋ชจ๋ธ ์ธ์šฉ ์‹œ ์•„๋ž˜ ๋…ผ๋ฌธ์„ ์ฐธ๊ณ ํ•˜์‹ญ์‹œ์˜ค.
232
+
233
  **BibTeX:**
234
 
235
+ ```bibtex
236
+ @article{dosovitskiy2020image,
237
+ title={An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale},
238
+ author={Dosovitskiy, Alexey and others},
239
+ journal={arXiv preprint arXiv:2010.11929},
240
+ year={2020}
241
+ }
242
+ ```
243
+
244
  [More Information Needed]
245
 
246
  **APA:**
 
259
 
260
  ## Model Card Authors [optional]
261
 
262
+ * dsaint31 (pipeline practice repository)
263
+
264
  [More Information Needed]
265
 
266
  ## Model Card Contact
267
 
268
+ * Hugging Face profile: [https://huggingface.co/dsaint31](https://huggingface.co/dsaint31)
269
+
270
+ [More Information Needed]