aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_models.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-11-05 16:32:21 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-11-05 16:32:21 +0000
commit80d639a440929e9effe4620ce74333de283e7efc (patch)
tree4183d8acef3b94182e1c622cdea59840be933d8e /modules/sd_models.py
parent96ee3eff6c8e6868e43fa57e1679603e89b89b1d (diff)
downloadstable-diffusion-webui-gfx803-80d639a440929e9effe4620ce74333de283e7efc.tar.gz
stable-diffusion-webui-gfx803-80d639a440929e9effe4620ce74333de283e7efc.tar.bz2
stable-diffusion-webui-gfx803-80d639a440929e9effe4620ce74333de283e7efc.zip
linter
Diffstat (limited to 'modules/sd_models.py')
-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 d76dc580..1036a3b1 100644
--- a/modules/sd_models.py
+++ b/modules/sd_models.py
@@ -355,10 +355,10 @@ def load_model_weights(model, checkpoint_info: CheckpointInfo, state_dict, timer
model.is_ssd = model.is_sdxl and 'model.diffusion_model.middle_block.1.transformer_blocks.0.attn1.to_q.weight' not in state_dict.keys()
if model.is_sdxl:
sd_models_xl.extend_sdxl(model)
-
+
if model.is_ssd:
sd_hijack.model_hijack.conv_ssd(model)
-
+
if shared.opts.sd_checkpoint_cache > 0:
# cache newly loaded model
checkpoints_loaded[checkpoint_info] = state_dict.copy()