revise preview logics

This commit is contained in:
layerdiffusion
2024-08-07 18:00:58 -07:00
parent e1df7a1bae
commit 69b1827ed5
4 changed files with 21 additions and 36 deletions

View File

@@ -95,6 +95,9 @@ def download_model(model_path, model_url):
def decoder_model():
if not shared.sd_model.is_webui_legacy_model():
return None
if shared.sd_model.is_sd3:
model_name = "taesd3_decoder.pth"
elif shared.sd_model.is_sdxl: