aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_models.py
diff options
context:
space:
mode:
authorlinuxmobile ( リナックス ) <bdiez19@gmail.com>2022-12-24 12:25:35 +0000
committerGitHub <noreply@github.com>2022-12-24 12:25:35 +0000
commit5a650055de3792223a91925aba8130ebdee29e35 (patch)
tree39b0b26930e4a373af3d5464843480ba1685d2bb /modules/sd_models.py
parentca162781889331c95c4e0762fc7ff4e965de1c30 (diff)
downloadstable-diffusion-webui-gfx803-5a650055de3792223a91925aba8130ebdee29e35.tar.gz
stable-diffusion-webui-gfx803-5a650055de3792223a91925aba8130ebdee29e35.tar.bz2
stable-diffusion-webui-gfx803-5a650055de3792223a91925aba8130ebdee29e35.zip
Removed lenght in sd_model at line 115
Commit eba60a4 is what is causing this error, delete the length check in sd_model starting at line 115 and it's fine. https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/5971#issuecomment-1364507379
Diffstat (limited to 'modules/sd_models.py')
-rw-r--r--modules/sd_models.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py
index 1254e5ae..6ca06211 100644
--- a/modules/sd_models.py
+++ b/modules/sd_models.py
@@ -111,9 +111,6 @@ def model_hash(filename):
def select_checkpoint():
model_checkpoint = shared.opts.sd_model_checkpoint
-
- if len(model_checkpoint) == 0:
- model_checkpoint = shared.default_sd_model_file
checkpoint_info = checkpoints_list.get(model_checkpoint, None)
if checkpoint_info is not None: