mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
allow zero steps
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user