diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-19 13:26:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-19 13:26:12 +0000 |
commit | 5677296d1b9470d73e35d38a8f2ed7a72bf16522 (patch) | |
tree | 3bb0825b37ce8710dc69b15365fa6e66716b543a /modules/sd_hijack.py | |
parent | 4334d25978ded517a76359e9e92b8101610cc35f (diff) | |
parent | cb7573489670cc7a042d24285e158b797c9558b2 (diff) | |
download | stable-diffusion-webui-gfx803-5677296d1b9470d73e35d38a8f2ed7a72bf16522.tar.gz stable-diffusion-webui-gfx803-5677296d1b9470d73e35d38a8f2ed7a72bf16522.tar.bz2 stable-diffusion-webui-gfx803-5677296d1b9470d73e35d38a8f2ed7a72bf16522.zip |
Merge pull request #11878 from Bourne-M/patch-1
【bug】reload altclip model error
Diffstat (limited to 'modules/sd_hijack.py')
-rw-r--r-- | modules/sd_hijack.py | 2 |
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:
|