mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-20 11:30:56 -08:00
Merge pull request #11878 from Bourne-M/patch-1
【bug】reload altclip model error
This commit is contained in:
parent
2c11e9009e
commit
c5934fb6e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue