From 9a1e55a30533698feb6323fd50c0f7e38df79729 Mon Sep 17 00:00:00 2001 From: Brandon Rising Date: Tue, 27 Feb 2024 12:36:04 -0500 Subject: [PATCH] Fix one last reference to the uncasted model --- invokeai/app/invocations/compel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/app/invocations/compel.py b/invokeai/app/invocations/compel.py index ce9b1948eb..bc0c7955dc 100644 --- a/invokeai/app/invocations/compel.py +++ b/invokeai/app/invocations/compel.py @@ -116,7 +116,7 @@ class CompelInvocation(BaseInvocation): # Apply the LoRA after text_encoder has been moved to its target device for faster patching. ModelPatcher.apply_lora_text_encoder(text_encoder, _lora_loader()), # Apply CLIP Skip after LoRA to prevent LoRA application from failing on skipped layers. - ModelPatcher.apply_clip_skip(text_encoder_info.model, self.clip.skipped_layers), + ModelPatcher.apply_clip_skip(text_encoder_model, self.clip.skipped_layers), ): assert isinstance(text_encoder, CLIPTextModel) compel = Compel(