mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-24 13:21:16 -08:00
Download model if none are found
This commit is contained in:
parent
3715ece0ad
commit
1615f786ee
2 changed files with 2 additions and 3 deletions
|
|
@ -105,7 +105,7 @@ def checkpoint_tiles():
|
|||
def list_models():
|
||||
checkpoints_list.clear()
|
||||
checkpoint_alisases.clear()
|
||||
model_list = modelloader.load_models(model_path=model_path, command_path=shared.cmd_opts.ckpt_dir, ext_filter=[".ckpt", ".safetensors"], ext_blacklist=[".vae.safetensors"])
|
||||
model_list = modelloader.load_models(model_path=model_path, model_url="https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors", command_path=shared.cmd_opts.ckpt_dir, ext_filter=[".ckpt", ".safetensors"], download_name="v1-5-pruned-emaonly.safetensors", ext_blacklist=[".vae.safetensors"])
|
||||
|
||||
cmd_ckpt = shared.cmd_opts.ckpt
|
||||
if os.path.exists(cmd_ckpt):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue