Spaces:
Runtime error
Runtime error
Commit
·
e5371d8
1
Parent(s):
25c5769
Update app.py
Browse filesreduce number of samples to fit gpu memory

app.py
CHANGED
|
@@ -141,7 +141,7 @@ _Created by [Justin Pinkney](https://www.justinpinkney.com) at [Lambda Labs](htt
|
|
| 141 |
|
| 142 |
### __Provide one or more images to be mixed together by a fine-tuned Stable Diffusion model.__
|
| 143 |
|
| 144 |
-

|
| 147 |
|
|
@@ -172,13 +172,13 @@ _Created by [Justin Pinkney](https://www.justinpinkney.com) at [Lambda Labs](htt
|
|
| 172 |
strengths.append(strength)
|
| 173 |
with gr.Row():
|
| 174 |
cfg_scale = gr.Slider(label="CFG scale", value=3, minimum=1, maximum=10, step=0.5)
|
| 175 |
-
n_samples = gr.Slider(label="Num samples", value=2, minimum=1, maximum=
|
| 176 |
seed = gr.Slider(label="Seed", value=0, minimum=0, maximum=10000, step=1)
|
| 177 |
steps = gr.Slider(label="Steps", value=30, minimum=10, maximum=100, step=5)
|
| 178 |
|
| 179 |
with gr.Row():
|
| 180 |
submit = gr.Button("Generate")
|
| 181 |
-
output = gr.Gallery().style(grid=[1,2
|
| 182 |
|
| 183 |
inps = list(chain(btns, txts, ims, strengths))
|
| 184 |
inps.extend([cfg_scale,n_samples,seed, steps,])
|
|
|
|
| 141 |
|
| 142 |
### __Provide one or more images to be mixed together by a fine-tuned Stable Diffusion model.__
|
| 143 |
|
| 144 |
+

|
| 145 |
|
| 146 |
""")
|
| 147 |
|
|
|
|
| 172 |
strengths.append(strength)
|
| 173 |
with gr.Row():
|
| 174 |
cfg_scale = gr.Slider(label="CFG scale", value=3, minimum=1, maximum=10, step=0.5)
|
| 175 |
+
n_samples = gr.Slider(label="Num samples", value=2, minimum=1, maximum=2, step=1)
|
| 176 |
seed = gr.Slider(label="Seed", value=0, minimum=0, maximum=10000, step=1)
|
| 177 |
steps = gr.Slider(label="Steps", value=30, minimum=10, maximum=100, step=5)
|
| 178 |
|
| 179 |
with gr.Row():
|
| 180 |
submit = gr.Button("Generate")
|
| 181 |
+
output = gr.Gallery().style(grid=[1,2], height="640px")
|
| 182 |
|
| 183 |
inps = list(chain(btns, txts, ims, strengths))
|
| 184 |
inps.extend([cfg_scale,n_samples,seed, steps,])
|