From 484b1166640ef1560d4725e39c60c62f98df293d Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Fri, 14 Jul 2023 17:20:00 -0400 Subject: [PATCH] allow zero steps --- modules/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui.py b/modules/ui.py index daf9c7dcb..77e8b3620 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -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