Spaces:
Running
on
Zero
Running
on
Zero
rizavelioglu
commited on
Commit
•
c3f0629
1
Parent(s):
060a7c4
update ui & fix possible minimum inference timestep
Browse files
app.py
CHANGED
@@ -171,7 +171,7 @@ examples = [[f"examples/{img_filename}", 42, 2.0, 20, False] for img_filename in
|
|
171 |
demo = gr.Interface(
|
172 |
fn=generate_image,
|
173 |
inputs=[
|
174 |
-
gr.Image(type="filepath", label="Reference Image", height=
|
175 |
gr.Slider(value=42, minimum=0, maximum=1e6, step=1, label="Seed"),
|
176 |
gr.Slider(
|
177 |
value=2.0,
|
@@ -181,12 +181,12 @@ demo = gr.Interface(
|
|
181 |
label="Guidance Scale(s)",
|
182 |
info="No guidance applied at s=1, hence faster inference.",
|
183 |
),
|
184 |
-
gr.Slider(value=20, minimum=
|
185 |
gr.Checkbox(
|
186 |
value=False, label="Upscale Output", info="Upscale output by 4x (2048x2048) using an off-the-shelf model."
|
187 |
),
|
188 |
],
|
189 |
-
outputs=gr.Image(type="pil", label="Generated Garment", height=
|
190 |
title=title,
|
191 |
description=description,
|
192 |
article=article,
|
|
|
171 |
demo = gr.Interface(
|
172 |
fn=generate_image,
|
173 |
inputs=[
|
174 |
+
gr.Image(type="filepath", label="Reference Image", height=448),
|
175 |
gr.Slider(value=42, minimum=0, maximum=1e6, step=1, label="Seed"),
|
176 |
gr.Slider(
|
177 |
value=2.0,
|
|
|
181 |
label="Guidance Scale(s)",
|
182 |
info="No guidance applied at s=1, hence faster inference.",
|
183 |
),
|
184 |
+
gr.Slider(value=20, minimum=5, maximum=1000, step=10, label="# of Inference Steps"),
|
185 |
gr.Checkbox(
|
186 |
value=False, label="Upscale Output", info="Upscale output by 4x (2048x2048) using an off-the-shelf model."
|
187 |
),
|
188 |
],
|
189 |
+
outputs=gr.Image(type="pil", label="Generated Garment", height=448),
|
190 |
title=title,
|
191 |
description=description,
|
192 |
article=article,
|