aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-02 21:22:20 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-10-02 21:22:20 +0300
commit852fd90c0dcda9cb5fbbfdf0c7308ce58034935c (patch)
tree24ba2b76ef9cbb31f88c42ba0956153582c1a806 /modules
parent0a435f0988f729fad5ed5bf14ba033795396067b (diff)
emergency fix for disabling SD model download after multiple complaints
Diffstat (limited to 'modules')
-rw-r--r--modules/sd_models.py4
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: