diff --git a/koboldcpp.py b/koboldcpp.py index 978a49f54..0fe05c8df 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -9940,7 +9940,7 @@ def show_gui(): sd_photomaker_var.set(mydict["sdphotomaker"] if ("sdphotomaker" in mydict and mydict["sdphotomaker"]) else "") sd_upscaler_var.set(mydict["sdupscaler"] if ("sdupscaler" in mydict and mydict["sdupscaler"]) else "") sd_vaeauto_var.set(1 if ("sdvaeauto" in mydict and mydict["sdvaeauto"]) else 0) - sd_tiled_vae_var.set(str(mydict["sdtiledvae"]) if ("sdtiledvae" in mydict and mydict["sdtiledvae"]) else str(default_vae_tile_threshold)) + sd_tiled_vae_var.set(str(mydict["sdtiledvae"]) if "sdtiledvae" in mydict else str(default_vae_tile_threshold)) sdl_sanitized = sanitize_lora_list(mydict.get('sdlora')) sd_lora_var.set("|".join(sdl_sanitized)) sd_loramult_var.set(" ".join(f"{n:.3f}".rstrip('0').rstrip('.') for n in mydict.get("sdloramult", [])))