Spaces:
Runtime error
Runtime error
Tony Lian
commited on
Commit
·
160401d
1
Parent(s):
5b6650f
Fix default preset with low_memory
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ with gr.Blocks(
|
|
162 |
response = gr.Textbox(lines=8, label="Paste ChatGPT response here (no original caption needed here)", placeholder=layout_placeholder)
|
163 |
num_inference_steps = gr.Slider(1, 100 if low_memory else 250, value=default_num_inference_steps, step=1, label="Number of denoising steps (set to >=50 for higher generation quality)")
|
164 |
# Using a environment variable allows setting default to faster/fastest on low-end GPUs.
|
165 |
-
preset = gr.Radio(label="Guidance: apply less control for faster generation", choices=["Standard", "Faster (disable attention guidance, keep per-box guidance)", "Faster (disable per-box guidance, keep attention guidance)", "Fastest (disable both)"], value="Faster (disable attention guidance)" if low_memory else "Standard")
|
166 |
seed = gr.Slider(0, 10000, value=0, step=1, label="Seed")
|
167 |
with gr.Accordion("Advanced options (play around for better generation)", open=False):
|
168 |
with gr.Tab("Guidance"):
|
|
|
162 |
response = gr.Textbox(lines=8, label="Paste ChatGPT response here (no original caption needed here)", placeholder=layout_placeholder)
|
163 |
num_inference_steps = gr.Slider(1, 100 if low_memory else 250, value=default_num_inference_steps, step=1, label="Number of denoising steps (set to >=50 for higher generation quality)")
|
164 |
# Using a environment variable allows setting default to faster/fastest on low-end GPUs.
|
165 |
+
preset = gr.Radio(label="Guidance: apply less control for faster generation", choices=["Standard", "Faster (disable attention guidance, keep per-box guidance)", "Faster (disable per-box guidance, keep attention guidance)", "Fastest (disable both)"], value="Faster (disable attention guidance, keep per-box guidance)" if low_memory else "Standard")
|
166 |
seed = gr.Slider(0, 10000, value=0, step=1, label="Seed")
|
167 |
with gr.Accordion("Advanced options (play around for better generation)", open=False):
|
168 |
with gr.Tab("Guidance"):
|