Commit
·
3a712ba
1
Parent(s):
7f3baaa
Reduced steps
Browse files- app.py +11 -11
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -171,22 +171,22 @@ def inference(text, style, inference_step, guidance_scale, seed):
|
|
| 171 |
|
| 172 |
title = "Stable Diffusion with Textual Inversion"
|
| 173 |
description = "A simple Gradio interface to infer Stable Diffusion and generate images with different art style"
|
| 174 |
-
examples = [["A sweet potato farm", 'Concept',
|
| 175 |
-
["Sky full of cotton candy", 'Realistic',
|
| 176 |
-
["Coffin full of jello", 'Line',
|
| 177 |
-
["Water skiing on a lake", 'Ricky',
|
| 178 |
-
["Super slippery noodles", 'Plane Scape',
|
| 179 |
-
["Beautiful sunset", 'Concept',
|
| 180 |
-
["A glittering gem", 'Realistic',
|
| 181 |
-
["River rafting", 'Line',
|
| 182 |
-
["A green tea", 'Ricky',
|
| 183 |
-
["Three sphered rocks", 'Plane Scape',
|
| 184 |
|
| 185 |
demo = gr.Interface(inference,
|
| 186 |
inputs = [gr.Textbox(label="Prompt", type="text"),
|
| 187 |
gr.Dropdown(label="Style", choices=['Concept', 'Realistic', 'Line',
|
| 188 |
'Ricky', 'Plane Scape'], value="Concept"),
|
| 189 |
-
gr.Slider(10, 50,
|
| 190 |
gr.Slider(1, 10, 7.5, step = 0.1, label="Guidance scale"),
|
| 191 |
gr.Slider(0, 10000, 1, step = 1, label="Seed")],
|
| 192 |
outputs= [gr.Image(width=320, height=320, label="Output SAM")],
|
|
|
|
| 171 |
|
| 172 |
title = "Stable Diffusion with Textual Inversion"
|
| 173 |
description = "A simple Gradio interface to infer Stable Diffusion and generate images with different art style"
|
| 174 |
+
examples = [["A sweet potato farm", 'Concept', 20, 0.5, 1],
|
| 175 |
+
["Sky full of cotton candy", 'Realistic', 20, 1.5, 2],
|
| 176 |
+
["Coffin full of jello", 'Line', 20, 2.5, 3],
|
| 177 |
+
["Water skiing on a lake", 'Ricky', 20, 3.5, 4],
|
| 178 |
+
["Super slippery noodles", 'Plane Scape', 20, 4.5, 5],
|
| 179 |
+
["Beautiful sunset", 'Concept', 20, 5.5, 6],
|
| 180 |
+
["A glittering gem", 'Realistic', 20, 6.5, 7],
|
| 181 |
+
["River rafting", 'Line', 20, 7.5, 8],
|
| 182 |
+
["A green tea", 'Ricky', 20, 8.5, 9],
|
| 183 |
+
["Three sphered rocks", 'Plane Scape', 20, 9.5, 10]]
|
| 184 |
|
| 185 |
demo = gr.Interface(inference,
|
| 186 |
inputs = [gr.Textbox(label="Prompt", type="text"),
|
| 187 |
gr.Dropdown(label="Style", choices=['Concept', 'Realistic', 'Line',
|
| 188 |
'Ricky', 'Plane Scape'], value="Concept"),
|
| 189 |
+
gr.Slider(10, 50, 20, step = 10, label="Inference steps"),
|
| 190 |
gr.Slider(1, 10, 7.5, step = 0.1, label="Guidance scale"),
|
| 191 |
gr.Slider(0, 10000, 1, step = 1, label="Seed")],
|
| 192 |
outputs= [gr.Image(width=320, height=320, label="Output SAM")],
|
requirements.txt
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
aiofiles==23.2.1
|
| 2 |
altair==5.3.0
|
| 3 |
annotated-types==0.7.0
|
|
|
|
| 1 |
+
accelerate==0.33.0
|
| 2 |
aiofiles==23.2.1
|
| 3 |
altair==5.3.0
|
| 4 |
annotated-types==0.7.0
|