weizhou03 commited on
Commit
359f204
·
verified ·
1 Parent(s): a1d5c20

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +139 -142
  2. model.safetensors +1 -1
  3. model_head.pkl +1 -1
README.md CHANGED
@@ -5,11 +5,11 @@ tags:
5
  - text-classification
6
  - generated_from_setfit_trainer
7
  widget:
8
- - text: I need some modern design assets
9
- - text: Reduce the letter spacing
10
- - text: Group the menu items
11
- - text: Create a photo of a delicious pizza
12
- - text: Mirror the icon horizontally
13
  metrics:
14
  - accuracy
15
  pipeline_tag: text-classification
@@ -28,7 +28,7 @@ model-index:
28
  split: test
29
  metrics:
30
  - type: accuracy
31
- value: 0.4163860830527497
32
  name: Accuracy
33
  ---
34
 
@@ -60,78 +60,78 @@ The model has been trained using an efficient few-shot learning technique that i
60
  - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
61
 
62
  ### Model Labels
63
- | Label | Examples |
64
- |:------|:--------------------------------------------------------------------------------------------------------------------|
65
- | 0 | <ul><li>'Add a corporate presentation background'</li><li>'Insert a modern icon set for the design'</li></ul> |
66
- | 1 | <ul><li>'Show me some background options for my design'</li><li>'I need some modern design assets'</li></ul> |
67
- | 2 | <ul><li>'Add a footer with contact information'</li><li>'Insert a descriptive caption for the image'</li></ul> |
68
- | 3 | <ul><li>'Align the shapes to the top'</li><li>'Right align the buttons'</li></ul> |
69
- | 4 | <ul><li>'Make the image slide from left'</li><li>'Make the image bounce in'</li></ul> |
70
- | 5 | <ul><li>'Add a spiral animation to the page'</li><li>'Make the page bounce in from the top'</li></ul> |
71
- | 6 | <ul><li>'Take out the cat and put a dog in the image'</li><li>"Add glasses to the person's face"</li></ul> |
72
- | 7 | <ul><li>'Delete the test element'</li><li>'Remove the unused icon'</li></ul> |
73
- | 8 | <ul><li>'How do I change the font size?'</li><li>'How can I duplicate elements?'</li></ul> |
74
- | 9 | <ul><li>'Distribute the buttons around the center image'</li><li>'Arrange the shapes in a circle pattern'</li></ul> |
75
- | 10 | <ul><li>'Create a variation of this design'</li><li>'Make a copy for editing'</li></ul> |
76
- | 11 | <ul><li>'Duplicate the shape and change its color'</li><li>'Copy the image and make it smaller'</li></ul> |
77
- | 12 | <ul><li>'Copy the text to the last page'</li><li>'Duplicate the footer to page 2'</li></ul> |
78
- | 13 | <ul><li>'Fix the text layout'</li><li>'Improve the overall typography'</li></ul> |
79
- | 14 | <ul><li>'Mirror the icon horizontally'</li><li>'Flip the shape vertically'</li></ul> |
80
- | 15 | <ul><li>'Create a photo of a beautiful garden'</li><li>'Create a photo of a delicious pizza'</li></ul> |
81
- | 16 | <ul><li>'Generate an Instagram post for a birthday'</li><li>'Generate a Facebook post for a birthday'</li></ul> |
82
- | 17 | <ul><li>'Group the icons together'</li><li>'Group the menu items'</li></ul> |
83
- | 18 | <ul><li>'Position the image at the top right'</li><li>'Move the image to the center'</li></ul> |
84
- | 19 | <ul><li>'Add a dreamy effect'</li><li>'Make the image pop with color'</li></ul> |
85
- | 20 | <ul><li>'Suggest some shape designs'</li><li>'Suggest some button designs'</li></ul> |
86
- | 21 | <ul><li>'Redo the filter effect'</li><li>'Bring back the original position'</li></ul> |
87
- | 22 | <ul><li>'Remove the background from the icon'</li><li>'Remove the background from the logo'</li></ul> |
88
- | 23 | <ul><li>'Delete the watermark'</li><li>'Remove the graffiti'</li></ul> |
89
- | 24 | <ul><li>'Change the decorative element'</li><li>'Change the background image'</li></ul> |
90
- | 25 | <ul><li>'Update the body text'</li><li>'Change the subtitle'</li></ul> |
91
- | 26 | <ul><li>'Remove all filters from the image'</li><li>'Restore the original brightness'</li></ul> |
92
- | 27 | <ul><li>'Reduce the shape size'</li><li>'Increase the image size'</li></ul> |
93
- | 28 | <ul><li>'Change to poster size'</li><li>'Resize to Facebook post dimensions'</li></ul> |
94
- | 29 | <ul><li>'Rotate the element 60 degrees'</li><li>'Rotate the image 90 degrees'</li></ul> |
95
- | 30 | <ul><li>'Randomly place the icons on the page'</li><li>'Randomly place the shapes on the page'</li></ul> |
96
- | 31 | <ul><li>'Select the decorative elements'</li><li>'Choose the heading text'</li></ul> |
97
- | 32 | <ul><li>'Make the background transparent'</li><li>'Change to a dark background'</li></ul> |
98
- | 33 | <ul><li>'Change the blend mode to screen'</li><li>'Set the blend mode to darken'</li></ul> |
99
- | 34 | <ul><li>'Add a gaussian blur'</li><li>'Blur the background elements'</li></ul> |
100
- | 35 | <ul><li>'Add a gradient border'</li><li>'Change the border opacity'</li></ul> |
101
- | 36 | <ul><li>'Make the image more brilliant'</li><li>'Increase the brightness contrast'</li></ul> |
102
- | 37 | <ul><li>'Send the background to the back'</li><li>'Send the watermark to the back'</li></ul> |
103
- | 38 | <ul><li>'Make the image more dramatic'</li><li>'Make the image more defined'</li></ul> |
104
- | 39 | <ul><li>'Make the image square'</li><li>'Crop the image to a circle'</li></ul> |
105
- | 40 | <ul><li>'Add a directional shadow'</li><li>'Create a floating shadow'</li></ul> |
106
- | 41 | <ul><li>'Change the color to silver'</li><li>'Change the button color to purple'</li></ul> |
107
- | 42 | <ul><li>'Increase the body text size'</li><li>'Increase the heading size'</li></ul> |
108
- | 43 | <ul><li>'Add strikethrough to the text'</li><li>'Add strikethrough to the label'</li></ul> |
109
- | 44 | <ul><li>'Use a serif font for the heading'</li><li>'Change to a clean font'</li></ul> |
110
- | 45 | <ul><li>'Brighten the light areas'</li><li>'Enhance the bright spots'</li></ul> |
111
- | 46 | <ul><li>'Set the image as full-page background'</li><li>'Make the image the background layer'</li></ul> |
112
- | 47 | <ul><li>'Reduce the letter spacing'</li><li>'Add more space between letters'</li></ul> |
113
- | 48 | <ul><li>'Make the text more compact'</li><li>'Reduce the line height'</li></ul> |
114
- | 49 | <ul><li>'Increase the transparency of the element'</li><li>'Make the element semi-transparent'</li></ul> |
115
- | 50 | <ul><li>'Add spacing between text blocks'</li><li>'Make the paragraphs more compact'</li></ul> |
116
- | 51 | <ul><li>'Reduce the color richness'</li><li>'Reduce the color vibrancy'</li></ul> |
117
- | 52 | <ul><li>'Make the shadows more prominent'</li><li>'Increase the shadow intensity'</li></ul> |
118
- | 53 | <ul><li>'Increase the image resolution'</li><li>'Make the details more sharp'</li></ul> |
119
- | 54 | <ul><li>'Right align the caption'</li><li>'Center the button text'</li></ul> |
120
- | 55 | <ul><li>'Create a decorative border'</li><li>'Create a border around the text'</li></ul> |
121
- | 56 | <ul><li>'Make the text flow in an arc'</li><li>'Create text that follows a circle'</li></ul> |
122
- | 57 | <ul><li>'Convert the text to a list format'</li><li>'Make the text into a numbered sequence'</li></ul> |
123
- | 58 | <ul><li>'Add a dramatic text shadow'</li><li>'Add a colored glow to the text'</li></ul> |
124
- | 59 | <ul><li>'Make the image more amber'</li><li>'Increase the warm color balance'</li></ul> |
125
- | 60 | <ul><li>'Open the file upload dialog'</li><li>'I need to upload a logo'</li></ul> |
126
- | 61 | <ul><li>'Go back to the original position'</li><li>'Go back to the original text'</li></ul> |
127
- | 62 | <ul><li>'Separate the combined elements'</li><li>'Ungroup the merged elements'</li></ul> |
128
 
129
  ## Evaluation
130
 
131
  ### Metrics
132
  | Label | Accuracy |
133
  |:--------|:---------|
134
- | **all** | 0.4164 |
135
 
136
  ## Uses
137
 
@@ -151,7 +151,7 @@ from setfit import SetFitModel
151
  # Download from the 🤗 Hub
152
  model = SetFitModel.from_pretrained("setfit_model_id")
153
  # Run inference
154
- preds = model("Group the menu items")
155
  ```
156
 
157
  <!--
@@ -183,73 +183,73 @@ preds = model("Group the menu items")
183
  ### Training Set Metrics
184
  | Training set | Min | Median | Max |
185
  |:-------------|:----|:-------|:----|
186
- | Word count | 3 | 5.2302 | 11 |
187
 
188
  | Label | Training Sample Count |
189
  |:------|:----------------------|
190
- | 0 | 2 |
191
- | 1 | 2 |
192
- | 2 | 2 |
193
- | 3 | 2 |
194
- | 4 | 2 |
195
- | 5 | 2 |
196
- | 6 | 2 |
197
- | 7 | 2 |
198
- | 8 | 2 |
199
- | 9 | 2 |
200
- | 10 | 2 |
201
- | 11 | 2 |
202
- | 12 | 2 |
203
- | 13 | 2 |
204
- | 14 | 2 |
205
- | 15 | 2 |
206
- | 16 | 2 |
207
- | 17 | 2 |
208
- | 18 | 2 |
209
- | 19 | 2 |
210
- | 20 | 2 |
211
- | 21 | 2 |
212
- | 22 | 2 |
213
- | 23 | 2 |
214
- | 24 | 2 |
215
- | 25 | 2 |
216
- | 26 | 2 |
217
- | 27 | 2 |
218
- | 28 | 2 |
219
- | 29 | 2 |
220
- | 30 | 2 |
221
- | 31 | 2 |
222
- | 32 | 2 |
223
- | 33 | 2 |
224
- | 34 | 2 |
225
- | 35 | 2 |
226
- | 36 | 2 |
227
- | 37 | 2 |
228
- | 38 | 2 |
229
- | 39 | 2 |
230
- | 40 | 2 |
231
- | 41 | 2 |
232
- | 42 | 2 |
233
- | 43 | 2 |
234
- | 44 | 2 |
235
- | 45 | 2 |
236
- | 46 | 2 |
237
- | 47 | 2 |
238
- | 48 | 2 |
239
- | 49 | 2 |
240
- | 50 | 2 |
241
- | 51 | 2 |
242
- | 52 | 2 |
243
- | 53 | 2 |
244
- | 54 | 2 |
245
- | 55 | 2 |
246
- | 56 | 2 |
247
- | 57 | 2 |
248
- | 58 | 2 |
249
- | 59 | 2 |
250
- | 60 | 2 |
251
- | 61 | 2 |
252
- | 62 | 2 |
253
 
254
  ### Training Hyperparameters
255
  - batch_size: (64, 64)
@@ -272,11 +272,8 @@ preds = model("Group the menu items")
272
  ### Training Results
273
  | Epoch | Step | Training Loss | Validation Loss |
274
  |:------:|:----:|:-------------:|:---------------:|
275
- | 0.0041 | 1 | 0.1097 | - |
276
- | 0.2041 | 50 | 0.0477 | - |
277
- | 0.4082 | 100 | 0.0106 | - |
278
- | 0.6122 | 150 | 0.0045 | - |
279
- | 0.8163 | 200 | 0.0032 | - |
280
 
281
  ### Framework Versions
282
  - Python: 3.12.11
 
5
  - text-classification
6
  - generated_from_setfit_trainer
7
  widget:
8
+ - text: I need some icon suggestions for this layout
9
+ - text: Tighten the letter spacing
10
+ - text: Group the logo and title together
11
+ - text: Create a photo of a mountain landscape
12
+ - text: Mirror the logo vertically
13
  metrics:
14
  - accuracy
15
  pipeline_tag: text-classification
 
28
  split: test
29
  metrics:
30
  - type: accuracy
31
+ value: 0.29854096520763185
32
  name: Accuracy
33
  ---
34
 
 
60
  - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
61
 
62
  ### Model Labels
63
+ | Label | Examples |
64
+ |:------|:-------------------------------------------------------------------|
65
+ | 0 | <ul><li>'Add a corporate presentation background'</li></ul> |
66
+ | 1 | <ul><li>'I need some icon suggestions for this layout'</li></ul> |
67
+ | 2 | <ul><li>"Add a heading that says 'Welcome'"</li></ul> |
68
+ | 3 | <ul><li>'Distribute the shapes across the page'</li></ul> |
69
+ | 4 | <ul><li>'Add a zoom animation to the logo'</li></ul> |
70
+ | 5 | <ul><li>'Make everything fade in gradually'</li></ul> |
71
+ | 6 | <ul><li>'Remove the unwanted text overlay'</li></ul> |
72
+ | 7 | <ul><li>'Remove the background shape'</li></ul> |
73
+ | 8 | <ul><li>'What shape options do you have?'</li></ul> |
74
+ | 9 | <ul><li>'Distribute the buttons around the center image'</li></ul> |
75
+ | 10 | <ul><li>'Duplicate the page structure'</li></ul> |
76
+ | 11 | <ul><li>'Duplicate the icon and move it'</li></ul> |
77
+ | 12 | <ul><li>'Copy the content to the final page'</li></ul> |
78
+ | 13 | <ul><li>'Fix the letter spacing'</li></ul> |
79
+ | 14 | <ul><li>'Mirror the logo vertically'</li></ul> |
80
+ | 15 | <ul><li>'Create a photo of a mountain landscape'</li></ul> |
81
+ | 16 | <ul><li>'Create a card for a birthday party'</li></ul> |
82
+ | 17 | <ul><li>'Group the logo and title together'</li></ul> |
83
+ | 18 | <ul><li>'Move the image to the center'</li></ul> |
84
+ | 19 | <ul><li>'Apply a vintage filter to the photo'</li></ul> |
85
+ | 20 | <ul><li>'Find me texture patterns'</li></ul> |
86
+ | 21 | <ul><li>'Restore the previous color'</li></ul> |
87
+ | 22 | <ul><li>'Remove the background from the illustration'</li></ul> |
88
+ | 23 | <ul><li>'Delete the old sign'</li></ul> |
89
+ | 24 | <ul><li>'Replace the old logo with a new one'</li></ul> |
90
+ | 25 | <ul><li>'Replace the tagline'</li></ul> |
91
+ | 26 | <ul><li>'Reset the image adjustments'</li></ul> |
92
+ | 27 | <ul><li>'Scale the text up'</li></ul> |
93
+ | 28 | <ul><li>'Resize to LinkedIn post dimensions'</li></ul> |
94
+ | 29 | <ul><li>'Turn the logo 270 degrees'</li></ul> |
95
+ | 30 | <ul><li>'Scatter the particles around the text'</li></ul> |
96
+ | 31 | <ul><li>'Select the footer content'</li></ul> |
97
+ | 32 | <ul><li>'Change to a light gray background'</li></ul> |
98
+ | 33 | <ul><li>'Change the blend mode to color burn'</li></ul> |
99
+ | 34 | <ul><li>'Blur the logo slightly'</li></ul> |
100
+ | 35 | <ul><li>'Add a double border to the image'</li></ul> |
101
+ | 36 | <ul><li>'Make the photo more illuminated'</li></ul> |
102
+ | 37 | <ul><li>'Send the logo to the back'</li></ul> |
103
+ | 38 | <ul><li>'Increase the image contrast'</li></ul> |
104
+ | 39 | <ul><li>'Crop to a polygon'</li></ul> |
105
+ | 40 | <ul><li>'Add a gradient shadow'</li></ul> |
106
+ | 41 | <ul><li>'Change the background color to green'</li></ul> |
107
+ | 42 | <ul><li>'Increase the menu font size'</li></ul> |
108
+ | 43 | <ul><li>'Make the text bold and strikethrough'</li></ul> |
109
+ | 44 | <ul><li>'Use a decorative font for the logo'</li></ul> |
110
+ | 45 | <ul><li>'Brighten the light areas'</li></ul> |
111
+ | 46 | <ul><li>'Set the picture as full background'</li></ul> |
112
+ | 47 | <ul><li>'Tighten the letter spacing'</li></ul> |
113
+ | 48 | <ul><li>'Add more line height'</li></ul> |
114
+ | 49 | <ul><li>'Reduce the opacity of the overlay'</li></ul> |
115
+ | 50 | <ul><li>'Reduce the paragraph spacing'</li></ul> |
116
+ | 51 | <ul><li>'Make the colors more vibrant'</li></ul> |
117
+ | 52 | <ul><li>'Make the shadows deeper'</li></ul> |
118
+ | 53 | <ul><li>'Increase the image sharpness'</li></ul> |
119
+ | 54 | <ul><li>'Left align the subtitle'</li></ul> |
120
+ | 55 | <ul><li>'Create a text container'</li></ul> |
121
+ | 56 | <ul><li>'Create text in a spiral pattern'</li></ul> |
122
+ | 57 | <ul><li>'Convert to bullet point format'</li></ul> |
123
+ | 58 | <ul><li>'Add a colored shadow to the text'</li></ul> |
124
+ | 59 | <ul><li>'Increase the warm color cast'</li></ul> |
125
+ | 60 | <ul><li>'I want to upload a new image'</li></ul> |
126
+ | 61 | <ul><li>'Revert the opacity change'</li></ul> |
127
+ | 62 | <ul><li>'Break apart the grouped elements'</li></ul> |
128
 
129
  ## Evaluation
130
 
131
  ### Metrics
132
  | Label | Accuracy |
133
  |:--------|:---------|
134
+ | **all** | 0.2985 |
135
 
136
  ## Uses
137
 
 
151
  # Download from the 🤗 Hub
152
  model = SetFitModel.from_pretrained("setfit_model_id")
153
  # Run inference
154
+ preds = model("Tighten the letter spacing")
155
  ```
156
 
157
  <!--
 
183
  ### Training Set Metrics
184
  | Training set | Min | Median | Max |
185
  |:-------------|:----|:-------|:----|
186
+ | Word count | 3 | 5.2857 | 8 |
187
 
188
  | Label | Training Sample Count |
189
  |:------|:----------------------|
190
+ | 0 | 1 |
191
+ | 1 | 1 |
192
+ | 2 | 1 |
193
+ | 3 | 1 |
194
+ | 4 | 1 |
195
+ | 5 | 1 |
196
+ | 6 | 1 |
197
+ | 7 | 1 |
198
+ | 8 | 1 |
199
+ | 9 | 1 |
200
+ | 10 | 1 |
201
+ | 11 | 1 |
202
+ | 12 | 1 |
203
+ | 13 | 1 |
204
+ | 14 | 1 |
205
+ | 15 | 1 |
206
+ | 16 | 1 |
207
+ | 17 | 1 |
208
+ | 18 | 1 |
209
+ | 19 | 1 |
210
+ | 20 | 1 |
211
+ | 21 | 1 |
212
+ | 22 | 1 |
213
+ | 23 | 1 |
214
+ | 24 | 1 |
215
+ | 25 | 1 |
216
+ | 26 | 1 |
217
+ | 27 | 1 |
218
+ | 28 | 1 |
219
+ | 29 | 1 |
220
+ | 30 | 1 |
221
+ | 31 | 1 |
222
+ | 32 | 1 |
223
+ | 33 | 1 |
224
+ | 34 | 1 |
225
+ | 35 | 1 |
226
+ | 36 | 1 |
227
+ | 37 | 1 |
228
+ | 38 | 1 |
229
+ | 39 | 1 |
230
+ | 40 | 1 |
231
+ | 41 | 1 |
232
+ | 42 | 1 |
233
+ | 43 | 1 |
234
+ | 44 | 1 |
235
+ | 45 | 1 |
236
+ | 46 | 1 |
237
+ | 47 | 1 |
238
+ | 48 | 1 |
239
+ | 49 | 1 |
240
+ | 50 | 1 |
241
+ | 51 | 1 |
242
+ | 52 | 1 |
243
+ | 53 | 1 |
244
+ | 54 | 1 |
245
+ | 55 | 1 |
246
+ | 56 | 1 |
247
+ | 57 | 1 |
248
+ | 58 | 1 |
249
+ | 59 | 1 |
250
+ | 60 | 1 |
251
+ | 61 | 1 |
252
+ | 62 | 1 |
253
 
254
  ### Training Hyperparameters
255
  - batch_size: (64, 64)
 
272
  ### Training Results
273
  | Epoch | Step | Training Loss | Validation Loss |
274
  |:------:|:----:|:-------------:|:---------------:|
275
+ | 0.0161 | 1 | 0.1282 | - |
276
+ | 0.8065 | 50 | 0.0118 | - |
 
 
 
277
 
278
  ### Framework Versions
279
  - Python: 3.12.11
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3c83dbf04e86c45bc32c718b4cffe2fac929e9c674997cd1a149f6cc8e44784a
3
  size 546938168
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63c1f03cab264850c048b0b6eb29d9f8bf69476c716d38f5657dc8b9bd087404
3
  size 546938168
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:95509daeba7f74aa3e52cc4409d0ae655a5c4092860ba0ee8b19bc3efb7681eb
3
  size 388927
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e18a0fa946e9f6dbcb9646d4a936308a4e0e3ddb0886a33bbe2f33e3e8e9215
3
  size 388927