diff options
author | Jairo Correa <jn.j41r0@gmail.com> | 2022-11-01 04:01:49 -0300 |
---|---|---|
committer | Jairo Correa <jn.j41r0@gmail.com> | 2022-11-01 04:01:49 -0300 |
commit | af758e97fa2c4c853042f121af4e974be01e6696 (patch) | |
tree | d2775792cce1a7084fe24ef8e5225a94d04a4bc0 /modules/sd_hijack.py | |
parent | 5c9b3625fa03f18649e1843b5e9f2df2d4de94f9 (diff) |
Unload sd_model before loading the other
Diffstat (limited to 'modules/sd_hijack.py')
-rw-r--r-- | modules/sd_hijack.py | 4 |
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
|