ford442 commited on
Commit
7ff08cc
·
verified ·
1 Parent(s): 993153a

Update ip_adapter/ip_adapter.py

Browse files
Files changed (1) hide show
  1. ip_adapter/ip_adapter.py +0 -1
ip_adapter/ip_adapter.py CHANGED
@@ -279,7 +279,6 @@ class IPAdapterXL(IPAdapter):
279
  prompt_embeds, negative_prompt_embeds, pooled_prompt_embeds, negative_pooled_prompt_embeds = self.pipe.encode_prompt(
280
  prompt, num_images_per_prompt=num_samples, do_classifier_free_guidance=True, negative_prompt=negative_prompt)
281
  prompt_embeds = prompt_embeds * text_scale
282
- prompt_embeds = prompt_embeds * text_scale
283
  prompt_embeds = torch.cat([prompt_embeds, image_prompt_embeds], dim=1)
284
  negative_prompt_embeds = torch.cat([negative_prompt_embeds, uncond_image_prompt_embeds], dim=1)
285
 
 
279
  prompt_embeds, negative_prompt_embeds, pooled_prompt_embeds, negative_pooled_prompt_embeds = self.pipe.encode_prompt(
280
  prompt, num_images_per_prompt=num_samples, do_classifier_free_guidance=True, negative_prompt=negative_prompt)
281
  prompt_embeds = prompt_embeds * text_scale
 
282
  prompt_embeds = torch.cat([prompt_embeds, image_prompt_embeds], dim=1)
283
  negative_prompt_embeds = torch.cat([negative_prompt_embeds, uncond_image_prompt_embeds], dim=1)
284