mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-18 15:10:55 -08:00
Fix base VAE caching was done after loading VAE, also add safeguard
This commit is contained in:
parent
8ab4927452
commit
abc1e79a5d
2 changed files with 9 additions and 11 deletions
|
|
@ -220,6 +220,7 @@ def load_model_weights(model, checkpoint_info, vae_file="auto"):
|
|||
model.sd_model_checkpoint = checkpoint_file
|
||||
model.sd_checkpoint_info = checkpoint_info
|
||||
|
||||
sd_vae.clear_loaded_vae()
|
||||
sd_vae.load_vae(model, vae_file)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue