TobDeBer commited on
Commit
0c2dc83
1 Parent(s): 7645cc5

Fine control for Turbo and Lightning models

Browse files

Turbo and Lightning models require less inference steps but also finer control of the guidance scale in the range from 1.0 to 2.0

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -134,7 +134,7 @@ with gr.Blocks(theme=theme, css="style.css") as demo:
134
  num_inference_steps_base = gr.Slider(
135
  info="Number of denoising steps",
136
  label="Number of inference steps",
137
- minimum=10,
138
  maximum=100,
139
  step=1,
140
  value=25,
@@ -177,7 +177,7 @@ with gr.Blocks(theme=theme, css="style.css") as demo:
177
  label="Guidance scale",
178
  minimum=1,
179
  maximum=20,
180
- step=0.1,
181
  value=5.0,
182
  )
183
 
 
134
  num_inference_steps_base = gr.Slider(
135
  info="Number of denoising steps",
136
  label="Number of inference steps",
137
+ minimum=1,
138
  maximum=100,
139
  step=1,
140
  value=25,
 
177
  label="Guidance scale",
178
  minimum=1,
179
  maximum=20,
180
+ step=0.01,
181
  value=5.0,
182
  )
183