This commit is contained in:
Haoming 2026-04-29 20:07:16 +08:00
parent 8bb3db1875
commit 496106b56b

View File

@ -197,9 +197,9 @@ def refresh_loading_params_for_xyz_grid():
def find_vae(name: str) -> str:
if name is None or (name := name.strip().lower()) == "none":
if name is None or name.strip().lower() == "none":
return "None"
elif name in ("auto", "automatic"):
elif name.strip().lower() in ("auto", "automatic"):
return "Automatic"
else:
return sd_vae.vae_dict[name]