arthur-qiu commited on
Commit
d27e139
·
1 Parent(s): cf0b990
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -213,21 +213,21 @@ with gr.Blocks(css=css) as demo:
213
  prompt_in = gr.Textbox(label="Prompt", placeholder="A panda walking and munching bamboo in a bamboo forest.")
214
 
215
  with gr.Row():
216
- with gr.Accordion('FreeScale Parameters (feel free to adjust these parameters based on your prompt): ', open=False):
217
  with gr.Row():
218
  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)
219
- options = gr.CheckboxGroup(['Disable Turbo', 'Disable FreeU'], label='Options (NOT recommended to change)', scale=2)
220
  with gr.Row():
221
  ddim_steps = gr.Slider(label='DDIM Steps',
222
  minimum=2,
223
  maximum=6,
224
  step=1,
225
  value=4)
226
- guidance_scale = gr.Slider(label='Guidance Scale',
227
- minimum=1.0,
228
- maximum=20.0,
229
  step=0.1,
230
- value=7.5)
231
  with gr.Row():
232
  cosine_scale = gr.Slider(label='Cosine Scale',
233
  minimum=0,
 
213
  prompt_in = gr.Textbox(label="Prompt", placeholder="A panda walking and munching bamboo in a bamboo forest.")
214
 
215
  with gr.Row():
216
+ with gr.Accordion('Advanced Settings', open=False):
217
  with gr.Row():
218
  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)
219
+ options = gr.CheckboxGroup(['Disable Turbo', 'Disable FreeU'], label="Options", info="NOT recommended to change", scale=2)
220
  with gr.Row():
221
  ddim_steps = gr.Slider(label='DDIM Steps',
222
  minimum=2,
223
  maximum=6,
224
  step=1,
225
  value=4)
226
+ guidance_scale = gr.Slider(label='Guidance Scale (Disabled in Turbo)',
227
+ minimum=0.0,
228
+ maximum=0.0,
229
  step=0.1,
230
+ value=0.0)
231
  with gr.Row():
232
  cosine_scale = gr.Slider(label='Cosine Scale',
233
  minimum=0,