Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
matt3o committed Dec 17, 2023
1 parent 6a7e085 commit f9d3769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IPAdapterPlus.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def apply_ipadapter(self, ipadapter, model, weight, clip_vision=None, image=None

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)

Expand Down

0 comments on commit f9d3769

Please sign in to comment.