aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2023-02-19 20:49:07 +0900
committerw-e-w <40751091+w-e-w@users.noreply.github.com>2023-02-19 20:49:07 +0900
commit014e7323f6f54a38183f8de52dc83f2248eee251 (patch)
treece218bfe34702314ac19669c37bb4f7af3455ae1 /modules
parentc77f01ff31072715afe80413ecaf6b3d00797d34 (diff)
when exists
Diffstat (limited to 'modules')
-rw-r--r--modules/sd_models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py
index ac4903f4..93959f55 100644
--- a/modules/sd_models.py
+++ b/modules/sd_models.py
@@ -107,7 +107,7 @@ def list_models():
checkpoint_alisases.clear()
cmd_ckpt = shared.cmd_opts.ckpt
- if shared.cmd_opts.no_download_sd_model or cmd_ckpt != shared.sd_model_file:
+ if shared.cmd_opts.no_download_sd_model or cmd_ckpt != shared.sd_model_file or os.path.exists(cmd_ckpt):
model_url = None
else:
model_url = "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors"