update model path

This commit is contained in:
Vladimir Mandic
2023-05-18 14:04:06 -04:00
parent 8b682183e3
commit 325c0945d2
+1 -3
View File
@@ -96,11 +96,9 @@ def checkpoint_tiles():
def list_models():
global model_path # pylint: disable=global-statement
model_path = os.path.join(shared.cmd_opts.models_dir, 'Stable-diffusion')
checkpoints_list.clear()
checkpoint_aliases.clear()
model_list = modelloader.load_models(model_path=model_path, model_url=None, command_path=shared.opts.ckpt_dir, ext_filter=[".ckpt", ".safetensors"], download_name=None, ext_blacklist=[".vae.ckpt", ".vae.safetensors"])
model_list = modelloader.load_models(model_path=os.path.join(shared.cmd_opts.models_dir, 'Stable-diffusion'), model_url=None, command_path=shared.opts.ckpt_dir, ext_filter=[".ckpt", ".safetensors"], download_name=None, ext_blacklist=[".vae.ckpt", ".vae.safetensors"])
if shared.cmd_opts.ckpt is not None:
if not os.path.exists(shared.cmd_opts.ckpt):
if shared.cmd_opts.ckpt.lower() != "none":