mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix modernui txt2img sampler
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -204,7 +204,7 @@ def create_sampler_and_steps_selection(choices, tabname, default_steps:int=20):
|
||||
if choices is None:
|
||||
sd_samplers.set_samplers()
|
||||
choices = [x for x in sd_samplers.samplers if not x.name == 'Same as primary']
|
||||
with gr.Row(elem_classes=['flex-break']):
|
||||
with gr.Row(elem_id=f"{tabname}_sampler_row", elem_classes=['flex-break']):
|
||||
steps = gr.Slider(minimum=1, maximum=100, step=1, label="Steps", elem_id=f"{tabname}_steps", value=default_steps)
|
||||
sampler_index = gr.Dropdown(label='Sampling method', elem_id=f"{tabname}_sampling", choices=[x.name for x in choices], value='Default', type="index")
|
||||
return steps, sampler_index
|
||||
|
||||
Reference in New Issue
Block a user