cleanly undo circular hijack #4818

This commit is contained in:
killfrenzy96 2022-11-18 21:22:55 +11:00
parent 98947d173e
commit 17e4432820

View File

@ -96,8 +96,8 @@ class StableDiffusionModelHijack:
if type(model_embeddings.token_embedding) == EmbeddingsWithFixes:
model_embeddings.token_embedding = model_embeddings.token_embedding.wrapped
self.apply_circular(False)
self.layers = None
self.circular_enabled = False
self.clip = None
def apply_circular(self, enable):