Spaces:
Running
on
Zero
Running
on
Zero
arthur-qiu
commited on
Commit
·
cb1f3e2
1
Parent(s):
c9daaf2
add turbo
Browse files
app.py
CHANGED
@@ -181,11 +181,11 @@ img[src*='#center'] {
|
|
181 |
def step_update(options):
|
182 |
if 'Disable Turbo' in options:
|
183 |
return gr.Slider(minimum=5,
|
184 |
-
maximum=
|
185 |
value=50)
|
186 |
else:
|
187 |
return gr.Slider(minimum=2,
|
188 |
-
maximum=
|
189 |
value=4)
|
190 |
|
191 |
with gr.Blocks(css=css) as demo:
|
@@ -209,12 +209,12 @@ with gr.Blocks(css=css) as demo:
|
|
209 |
with gr.Row():
|
210 |
with gr.Accordion('FreeScale Parameters (feel free to adjust these parameters based on your prompt): ', open=False):
|
211 |
with gr.Row():
|
212 |
-
output_size = gr.Dropdown(["2048 x 2048", "1024 x 2048", "2048 x 1024"], value="2048 x 2048", label="Output Size (H x W)", info="Due to GPU constraints, run the demo locally for higher resolutions.", scale=
|
213 |
-
options = gr.CheckboxGroup(['Disable Turbo', 'Disable FreeU'], label='Options (NOT recommended to change)', scale=
|
214 |
with gr.Row():
|
215 |
ddim_steps = gr.Slider(label='DDIM Steps',
|
216 |
minimum=2,
|
217 |
-
maximum=
|
218 |
step=1,
|
219 |
value=4)
|
220 |
guidance_scale = gr.Slider(label='Guidance Scale',
|
|
|
181 |
def step_update(options):
|
182 |
if 'Disable Turbo' in options:
|
183 |
return gr.Slider(minimum=5,
|
184 |
+
maximum=60,
|
185 |
value=50)
|
186 |
else:
|
187 |
return gr.Slider(minimum=2,
|
188 |
+
maximum=6,
|
189 |
value=4)
|
190 |
|
191 |
with gr.Blocks(css=css) as demo:
|
|
|
209 |
with gr.Row():
|
210 |
with gr.Accordion('FreeScale Parameters (feel free to adjust these parameters based on your prompt): ', open=False):
|
211 |
with gr.Row():
|
212 |
+
output_size = gr.Dropdown(["2048 x 2048", "1024 x 2048", "2048 x 1024"], value="2048 x 2048", label="Output Size (H x W)", info="Due to GPU constraints, run the demo locally for higher resolutions.", scale=3)
|
213 |
+
options = gr.CheckboxGroup(['Disable Turbo', 'Disable FreeU'], label='Options (NOT recommended to change)', scale=2)
|
214 |
with gr.Row():
|
215 |
ddim_steps = gr.Slider(label='DDIM Steps',
|
216 |
minimum=2,
|
217 |
+
maximum=6,
|
218 |
step=1,
|
219 |
value=4)
|
220 |
guidance_scale = gr.Slider(label='Guidance Scale',
|