aboutsummaryrefslogtreecommitdiff
path: root/modules/sd_hijack.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-11-01 13:54:00 +0300
committerGitHub <noreply@github.com>2022-11-01 13:54:00 +0300
commitf126986b76a4129061c85cd7213cde05a2f63b33 (patch)
tree9b1f77c09cae68200c15065c74c6d9dbcf3bf55b /modules/sd_hijack.py
parent087440404030fe4f704f3a568a35c86fb1b69259 (diff)
parentaf758e97fa2c4c853042f121af4e974be01e6696 (diff)
Merge pull request #4098 from jn-jairo/load-model
Unload sd_model before loading the other to solve the issue #3449
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