aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-19 16:26:12 +0300
committerGitHub <noreply@github.com>2023-07-19 16:26:12 +0300
commit5677296d1b9470d73e35d38a8f2ed7a72bf16522 (patch)
tree3bb0825b37ce8710dc69b15365fa6e66716b543a /modules
parent4334d25978ded517a76359e9e92b8101610cc35f (diff)
parentcb7573489670cc7a042d24285e158b797c9558b2 (diff)
Merge pull request #11878 from Bourne-M/patch-1
【bug】reload altclip model error
Diffstat (limited to 'modules')
-rw-r--r--modules/sd_hijack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_hijack.py b/modules/sd_hijack.py
index f5615967..c8fdd4f1 100644
--- a/modules/sd_hijack.py
+++ b/modules/sd_hijack.py
@@ -243,7 +243,7 @@ class StableDiffusionModelHijack:
ldm.modules.diffusionmodules.openaimodel.UNetModel.forward = sd_unet.UNetModel_forward
def undo_hijack(self, m):
- if type(m.cond_stage_model) == xlmr.BertSeriesModelWithTransformation:
+ if type(m.cond_stage_model) == sd_hijack_xlmr.FrozenXLMREmbedderWithCustomWords:
m.cond_stage_model = m.cond_stage_model.wrapped
elif type(m.cond_stage_model) == sd_hijack_clip.FrozenCLIPEmbedderWithCustomWords: