From f9d376980061869a0bce62d64eb211984b9bee3a Mon Sep 17 00:00:00 2001 From: matt3o Date: Sun, 17 Dec 2023 16:07:29 +0100 Subject: [PATCH] fix regression --- IPAdapterPlus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPAdapterPlus.py b/IPAdapterPlus.py index d7cf85b..8c143b3 100644 --- a/IPAdapterPlus.py +++ b/IPAdapterPlus.py @@ -461,7 +461,7 @@ class IPAdapterApply: self.ipadapter.to(self.device, dtype=self.dtype) - image_prompt_embeds, uncond_image_prompt_embeds = self.ipadapter.get_image_embeds(clip_embed.to(self.device, dtype=self.embeds_dtype), clip_embed_zeroed.to(self.device, dtype=self.embeds_dtype)) + image_prompt_embeds, uncond_image_prompt_embeds = self.ipadapter.get_image_embeds(clip_embed.to(self.device, dtype=self.dtype), clip_embed_zeroed.to(self.device, dtype=self.dtype)) image_prompt_embeds = image_prompt_embeds.to(self.device, dtype=self.embeds_dtype) uncond_image_prompt_embeds = uncond_image_prompt_embeds.to(self.device, dtype=self.embeds_dtype)