aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMuhammad Rizqi Nur <rizqinur2010@gmail.com>2022-10-30 22:11:45 +0700
committerMuhammad Rizqi Nur <rizqinur2010@gmail.com>2022-10-30 22:11:45 +0700
commite1b2ea6e0012ecc988385fc523d8fb50ea5d6be5 (patch)
tree4b3148aaf0d2e519b22d55e05408a13be3edd859 /modules
parent2468039df2c5705039a5c14fd74f1354093bf874 (diff)
Change VAE search order and thus priority
Diffstat (limited to 'modules')
-rw-r--r--modules/sd_vae.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/sd_vae.py b/modules/sd_vae.py
index 82764e55..0767b925 100644
--- a/modules/sd_vae.py
+++ b/modules/sd_vae.py
@@ -25,10 +25,10 @@ def refresh_vae_list(vae_path=vae_path, model_path=model_path):
global vae_dict, vae_list
res = {}
candidates = [
- *glob.iglob(os.path.join(model_path, '**/*.vae.pt'), recursive=True),
*glob.iglob(os.path.join(model_path, '**/*.vae.ckpt'), recursive=True),
- *glob.iglob(os.path.join(vae_path, '**/*.pt'), recursive=True),
+ *glob.iglob(os.path.join(model_path, '**/*.vae.pt'), recursive=True),
*glob.iglob(os.path.join(vae_path, '**/*.ckpt'), recursive=True)
+ *glob.iglob(os.path.join(vae_path, '**/*.pt'), recursive=True),
]
if shared.cmd_opts.vae_path is not None and os.path.isfile(shared.cmd_opts.vae_path):
candidates.append(shared.cmd_opts.vae_path)