Skip to content

Commit

Permalink
when exists
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w committed Feb 19, 2023
1 parent c77f01f commit 014e732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sd_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 014e732

Please sign in to comment.