Skip to content

Commit

Permalink
Fixed loading TAESD decoder for SD from custom path
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonRide303 committed Oct 1, 2023
1 parent 7e1728e commit 85cc420
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
1 change: 1 addition & 0 deletions update_log_mre.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 85cc420

Please sign in to comment.