aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-19 16:26:12 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-25 16:18:55 +0300
commitc5934fb6e3007795efcf9b71be6df1581f61e4cb (patch)
tree9c5757b543ee3e39d1dc95593985aae111423362 /modules
parent2c11e9009ea18bab4ce2963d44db0c6fd3227370 (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: