mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
update model path
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user