Skip to content

Commit e1b2ea6

Browse files
committed
Change VAE search order and thus priority
1 parent 2468039 commit e1b2ea6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/sd_vae.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ def refresh_vae_list(vae_path=vae_path, model_path=model_path):
2525
global vae_dict, vae_list
2626
res = {}
2727
candidates = [
28-
*glob.iglob(os.path.join(model_path, '**/*.vae.pt'), recursive=True),
2928
*glob.iglob(os.path.join(model_path, '**/*.vae.ckpt'), recursive=True),
30-
*glob.iglob(os.path.join(vae_path, '**/*.pt'), recursive=True),
29+
*glob.iglob(os.path.join(model_path, '**/*.vae.pt'), recursive=True),
3130
*glob.iglob(os.path.join(vae_path, '**/*.ckpt'), recursive=True)
31+
*glob.iglob(os.path.join(vae_path, '**/*.pt'), recursive=True),
3232
]
3333
if shared.cmd_opts.vae_path is not None and os.path.isfile(shared.cmd_opts.vae_path):
3434
candidates.append(shared.cmd_opts.vae_path)

0 commit comments

Comments
 (0)