aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_models.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-21 13:10:51 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-21 13:10:51 +0000
commitdf5706409386cc2e88718bd9101045587c39f8bb (patch)
tree7736df4b0be0f791b5f936e858ec1c1423ada571 /modules/sd_models.py
parent7d6b388d71e5854c48847c09b2dfed683b377027 (diff)
downloadstable-diffusion-webui-gfx803-df5706409386cc2e88718bd9101045587c39f8bb.tar.gz
stable-diffusion-webui-gfx803-df5706409386cc2e88718bd9101045587c39f8bb.tar.bz2
stable-diffusion-webui-gfx803-df5706409386cc2e88718bd9101045587c39f8bb.zip
do not load aesthetic clip model until it's needed
add refresh button for aesthetic embeddings add aesthetic params to images' infotext
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 05a1df28..b1c91b0d 100644
--- a/modules/sd_models.py
+++ b/modules/sd_models.py
@@ -234,9 +234,6 @@ def load_model(checkpoint_info=None):
sd_hijack.model_hijack.hijack(sd_model)
- if shared.clip_model is None or shared.clip_model.transformer.name_or_path != sd_model.cond_stage_model.wrapped.transformer.name_or_path:
- shared.clip_model = CLIPModel.from_pretrained(sd_model.cond_stage_model.wrapped.transformer.name_or_path)
-
sd_model.eval()
print(f"Model loaded.")