aboutsummaryrefslogtreecommitdiff
path: root/modules/sd_models.py
diff options
context:
space:
mode:
authorssysm <me@theeditorstudio.com>2022-10-09 23:17:29 -0400
committerssysm <me@theeditorstudio.com>2022-10-09 23:17:29 -0400
commitcc92dc1f8d73dd4d574c4c8ccab78b7fc61e440b (patch)
tree5804c71f842a2cf696c5f69a6e20772f64a97078 /modules/sd_models.py
parent050a6a798cec90ae2f881c2ddd3f0221e69907dc (diff)
add vae path args
Diffstat (limited to 'modules/sd_models.py')
-rw-r--r--modules/sd_models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py
index cb3982b1..b6979432 100644
--- a/modules/sd_models.py
+++ b/modules/sd_models.py
@@ -147,7 +147,7 @@ def load_model_weights(model, checkpoint_info):
devices.dtype = torch.float32 if shared.cmd_opts.no_half else torch.float16
- vae_file = os.path.splitext(checkpoint_file)[0] + ".vae.pt"
+ vae_file = shared.cmd_opts.vae_path or os.path.splitext(checkpoint_file)[0] + ".vae.pt"
if os.path.exists(vae_file):
print(f"Loading VAE weights from: {vae_file}")
vae_ckpt = torch.load(vae_file, map_location="cpu")