aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_hijack.py
diff options
context:
space:
mode:
authorevshiron <evshiron@gmail.com>2022-11-02 04:31:33 +0000
committerevshiron <evshiron@gmail.com>2022-11-02 04:31:33 +0000
commit51e0a83969925e6b7b12b9b087d028c16ce04e3c (patch)
treebbccf573783cd2449e3774fe949c81dced83b6d4 /modules/sd_hijack.py
parent1a4ff2de6a835cd8cc1590bbc1a8dedb5ad37e5b (diff)
parent55688c48806f9383f3a56f6b9a0ab8fbf205edd2 (diff)
downloadstable-diffusion-webui-gfx803-51e0a83969925e6b7b12b9b087d028c16ce04e3c.tar.gz
stable-diffusion-webui-gfx803-51e0a83969925e6b7b12b9b087d028c16ce04e3c.tar.bz2
stable-diffusion-webui-gfx803-51e0a83969925e6b7b12b9b087d028c16ce04e3c.zip
Merge branch 'master' into fix/progress-api
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