mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 16:55:14 +02:00
fix(gui): preserve disabled VAE tiling in configs (#2346)
Treat the presence of sdtiledvae separately from its truthiness so the documented zero value survives a launcher config reload. Fixes #2065. Co-authored-by: LK-Customs <lolikun@sunpraise-mc.com>
This commit is contained in:
+1
-1
@@ -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", [])))
|
||||
|
||||
Reference in New Issue
Block a user