From 85cc420b3e047f22ddc2870856c96dcd2fd0e70d Mon Sep 17 00:00:00 2001 From: MoonRide303 Date: Sun, 1 Oct 2023 12:50:46 +0200 Subject: [PATCH] Fixed loading TAESD decoder for SD from custom path --- modules/core.py | 3 ++- update_log_mre.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/core.py b/modules/core.py index 18bc45c02..a65fd7625 100644 --- a/modules/core.py +++ b/modules/core.py @@ -267,7 +267,8 @@ def preview_function(x0, step, total_steps): if taesd is None and not is_sdxl: from latent_preview import TAESD, TAESDPreviewerImpl - taesd_decoder_path = os.path.abspath(os.path.realpath(os.path.join("models", "vae_approx", latent_format.taesd_decoder_name))) + from modules.path import vae_approx_path + taesd_decoder_path = os.path.join(vae_approx_path, latent_format.taesd_decoder_name) if not os.path.exists(taesd_decoder_path): print(f"Warning: TAESD previews enabled, but could not find {taesd_decoder_path}") diff --git a/update_log_mre.md b/update_log_mre.md index ceb1a13d0..39a5d76b1 100644 --- a/update_log_mre.md +++ b/update_log_mre.md @@ -2,6 +2,7 @@ * Added Style Iterator. * Removed meta tensor usage. +* Fixed loading TAESD decoder for SD from custom path. ### 2.0.78.4 MRE