Skip to content

Commit 85cc420

Browse files
committed
Fixed loading TAESD decoder for SD from custom path
1 parent 7e1728e commit 85cc420

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

modules/core.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ def preview_function(x0, step, total_steps):
267267

268268
if taesd is None and not is_sdxl:
269269
from latent_preview import TAESD, TAESDPreviewerImpl
270-
taesd_decoder_path = os.path.abspath(os.path.realpath(os.path.join("models", "vae_approx", latent_format.taesd_decoder_name)))
270+
from modules.path import vae_approx_path
271+
taesd_decoder_path = os.path.join(vae_approx_path, latent_format.taesd_decoder_name)
271272

272273
if not os.path.exists(taesd_decoder_path):
273274
print(f"Warning: TAESD previews enabled, but could not find {taesd_decoder_path}")

update_log_mre.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* Added Style Iterator.
44
* Removed meta tensor usage.
5+
* Fixed loading TAESD decoder for SD from custom path.
56

67
### 2.0.78.4 MRE
78

0 commit comments

Comments
 (0)