mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
sampler same as primary
This commit is contained in:
@@ -202,7 +202,7 @@ def create_correction_inputs(tab):
|
||||
def create_sampler_and_steps_selection(choices, tabname):
|
||||
if choices is None:
|
||||
sd_samplers.set_samplers()
|
||||
choices = sd_samplers.samplers
|
||||
choices = [x for x in sd_samplers.samplers if not x.name == 'Same as primary']
|
||||
with gr.Row(elem_classes=['flex-break']):
|
||||
steps = gr.Slider(minimum=1, maximum=99, step=1, label="Sampling steps", elem_id=f"{tabname}_steps", value=20)
|
||||
sampler_index = gr.Dropdown(label='Sampling method', elem_id=f"{tabname}_sampling", choices=[x.name for x in choices], value='Default', type="index")
|
||||
@@ -260,7 +260,7 @@ def create_hires_inputs(tab):
|
||||
hr_resize_y = gr.Slider(minimum=0, maximum=4096, step=8, label="Height resize", value=0, elem_id=f"{tab}_hr_resize_y")
|
||||
with gr.Row(elem_id=f"{tab}_hires_fix_row2", variant="compact"):
|
||||
hr_force = gr.Checkbox(label='Force HiRes', value=False, elem_id=f"{tab}_hr_force")
|
||||
hr_sampler_index = gr.Dropdown(label='Secondary sampler', elem_id=f"{tab}_sampling_alt", choices=[x.name for x in sd_samplers.samplers], value='Default', type="index")
|
||||
hr_sampler_index = gr.Dropdown(label='Secondary sampler', elem_id=f"{tab}_sampling_alt", choices=[x.name for x in sd_samplers.samplers], value='Same as primary', type="index")
|
||||
with gr.Row(elem_id=f"{tab}_hires_row2"):
|
||||
hr_second_pass_steps = gr.Slider(minimum=0, maximum=99, step=1, label='HiRes steps', elem_id=f"{tab}_steps_alt", value=20)
|
||||
denoising_strength = gr.Slider(minimum=0.0, maximum=0.99, step=0.01, label='Strength', value=0.3, elem_id=f"{tab}_denoising_strength")
|
||||
|
||||
Reference in New Issue
Block a user