aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_hijack.py
diff options
context:
space:
mode:
authorAngelBottomless <35677394+aria1th@users.noreply.github.com>2022-11-02 13:18:31 +0000
committerGitHub <noreply@github.com>2022-11-02 13:18:31 +0000
commit10b280e9a21d7bbe854b212164b955444610743f (patch)
treeb1807fb11220f2607305ba47172b41c87441007a /modules/sd_hijack.py
parent9b5f85ac83f864310fe19c9deab6670bad695b0d (diff)
parent172c4bc09f0866e7dd114068ebe0f9abfe79ef33 (diff)
downloadstable-diffusion-webui-gfx803-10b280e9a21d7bbe854b212164b955444610743f.tar.gz
stable-diffusion-webui-gfx803-10b280e9a21d7bbe854b212164b955444610743f.tar.bz2
stable-diffusion-webui-gfx803-10b280e9a21d7bbe854b212164b955444610743f.zip
Merge branch 'AUTOMATIC1111:master' into force-push-patch-13
Diffstat (limited to 'modules/sd_hijack.py')
-rw-r--r--modules/sd_hijack.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/sd_hijack.py b/modules/sd_hijack.py
index 0f10828e..bc49d235 100644
--- a/modules/sd_hijack.py
+++ b/modules/sd_hijack.py
@@ -94,6 +94,10 @@ class StableDiffusionModelHijack:
if type(model_embeddings.token_embedding) == EmbeddingsWithFixes:
model_embeddings.token_embedding = model_embeddings.token_embedding.wrapped
+ self.layers = None
+ self.circular_enabled = False
+ self.clip = None
+
def apply_circular(self, enable):
if self.circular_enabled == enable:
return