tencent-ailab / IP-Adapter

The image prompt adapter is designed to enable a pretrained text-to-image diffusion model to generate images with image prompt.
Apache License 2.0
4.46k stars 289 forks source link

cat #345

Open masaisai111 opened 2 months ago

masaisai111 commented 2 months ago

Snipaste_2024-04-24_18-43-05 For this formula, why is prompt_embeds = torch.cat([promptembeds, image_prompt_embeds], dim=1) reflected in the code?

xiaohu2015 commented 2 months ago

https://github.com/tencent-ailab/IP-Adapter/blob/main/ip_adapter/attention_processor.py#L82