diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-02 18:22:20 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-02 18:22:20 +0000 |
commit | 852fd90c0dcda9cb5fbbfdf0c7308ce58034935c (patch) | |
tree | 24ba2b76ef9cbb31f88c42ba0956153582c1a806 | |
parent | 0a435f0988f729fad5ed5bf14ba033795396067b (diff) | |
download | stable-diffusion-webui-gfx803-852fd90c0dcda9cb5fbbfdf0c7308ce58034935c.tar.gz stable-diffusion-webui-gfx803-852fd90c0dcda9cb5fbbfdf0c7308ce58034935c.tar.bz2 stable-diffusion-webui-gfx803-852fd90c0dcda9cb5fbbfdf0c7308ce58034935c.zip |
emergency fix for disabling SD model download after multiple complaints
-rw-r--r-- | modules/sd_models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py index 9a6b568f..5f992064 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -45,8 +45,8 @@ def list_models(): def modeltitle(path, shorthash):
abspath = os.path.abspath(path)
- if user_dir is not None and abspath.startswith(user_dir):
- name = abspath.replace(user_dir, '')
+ if shared.cmd_opts.ckpt_dir is not None and abspath.startswith(shared.cmd_opts.ckpt_dir):
+ name = abspath.replace(shared.cmd_opts.ckpt_dir, '')
elif abspath.startswith(model_path):
name = abspath.replace(model_path, '')
else:
|