allow zero steps

This commit is contained in:
Vladimir Mandic
2023-07-14 17:20:00 -04:00
parent b1563f0ddd
commit 484b116664
+1 -1
View File
@@ -310,7 +310,7 @@ def create_sampler_and_steps_selection(choices, tabname):
else:
default_sampler_name = modules.sd_samplers.samplers[0].name
sampler_index = gr.Dropdown(label='Sampling method', elem_id=f"{tabname}_sampling", choices=[x.name for x in choices], value=default_sampler_name, type="index")
steps = gr.Slider(minimum=1, maximum=99, step=1, elem_id=f"{tabname}_steps", label="Sampling steps", value=20)
steps = gr.Slider(minimum=0, maximum=99, step=1, elem_id=f"{tabname}_steps", label="Sampling steps", value=20)
return steps, sampler_index