diff options
author | Muhammad Rizqi Nur <rizqinur2010@gmail.com> | 2022-11-02 20:48:58 +0700 |
---|---|---|
committer | Muhammad Rizqi Nur <rizqinur2010@gmail.com> | 2022-11-02 20:48:58 +0700 |
commit | 237e79c77deec1924b3547f49402b9c1e51c9535 (patch) | |
tree | 589f9aea7ea27791df575371ff322d99ad3f3dbc /modules/sd_hijack.py | |
parent | d5ea878b2aa117588d85287cbd8983aa52177df5 (diff) | |
parent | 172c4bc09f0866e7dd114068ebe0f9abfe79ef33 (diff) |
Merge branch 'master' into gradient-clipping
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
|