update setup

This commit is contained in:
Vladimir Mandic
2023-04-15 17:22:58 -04:00
parent 45dcc69484
commit dd25f2f515
11 changed files with 81 additions and 48 deletions
-1
View File
@@ -365,7 +365,6 @@ def create_output_panel(tabname, outdir):
def create_sampler_and_steps_selection(choices, tabname):
with FormRow(elem_id=f"sampler_selection_{tabname}"):
print(tabname, [x.name for x in choices])
sampler_index = gr.Dropdown(label='Sampling method', elem_id=f"{tabname}_sampling", choices=[x.name for x in choices], value="UniPC" if tabname == 'txt2img' else "Euler a", type="index")
steps = gr.Slider(minimum=1, maximum=150, step=1, elem_id=f"{tabname}_steps", label="Sampling steps", value=10 if tabname == 'txt2img' else 20)