Spaces:
Runtime error
Runtime error
justinpinkney
commited on
Commit
·
e5371d8
1
Parent(s):
25c5769
Update app.py
Browse filesreduce number of samples to fit gpu memory
![image-mixer.jpeg](https://s3.amazonaws.com/moonup/production/uploads/1674038658679-62bd5f951e22ec84279820e8.jpeg)
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 |
-
![banner-large.jpeg](https://s3.amazonaws.com/moonup/production/uploads/
|
145 |
|
146 |
""")
|
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 |
+
![banner-large.jpeg](https://s3.amazonaws.com/moonup/production/uploads/1674038658679-62bd5f951e22ec84279820e8.jpeg)
|
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,])
|