From ce92bf06c24bf0326a45aa82741abec4051cef84 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Fri, 14 Jul 2023 20:43:50 -0400 Subject: [PATCH] fix typo --- TODO.md | 1 + modules/ui.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index e03f0e4ad..3d375699f 100644 --- a/TODO.md +++ b/TODO.md @@ -4,6 +4,7 @@ Stuff to be fixed, in no particular order... +- SD-XL VAE `AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)` - SD-XL Lora - SD-XL Sketch/Inpaint - Kandinsky 2.2 (2.1 is working) diff --git a/modules/ui.py b/modules/ui.py index e6fd1d6aa..eeb1167f9 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -301,7 +301,7 @@ def create_refresh_button(refresh_component, refresh_method, refreshed_args, ele def create_sampler_and_steps_selection(choices, tabname, primary: bool = True): - with FormRow(elem_id=f"sampler_selection_{tabname}'_alt' if not primary else ''"): + with FormRow(elem_id=f"sampler_selection_{tabname}{'_alt' if not primary else ''}"): if 'UniPC' in [sampler.name for sampler in choices]: default_sampler_name = 'UniPC' elif 'Euler a' in [sampler.name for sampler in choices]: @@ -309,7 +309,7 @@ def create_sampler_and_steps_selection(choices, tabname, primary: bool = True): else: default_sampler_name = modules.sd_samplers.samplers[0].name sampler_index = gr.Dropdown(label='Sampling method', elem_id=f"{tabname}_sampling{'_alt' if not primary else ''}", choices=[x.name for x in choices], value=default_sampler_name, type="index") - steps = gr.Slider(minimum=0, maximum=99, step=1, elem_id=f"{tabname}_steps'_alt' if not primary else ''", label="Sampling steps", value=20) + steps = gr.Slider(minimum=0, maximum=99, step=1, elem_id=f"{tabname}_steps{'_alt' if not primary else ''}", label="Sampling steps", value=20) return steps, sampler_index