Spaces:
Running
on
Zero
Running
on
Zero
Update ip_adapter/ip_adapter.py
Browse files- ip_adapter/ip_adapter.py +2 -1
ip_adapter/ip_adapter.py
CHANGED
@@ -267,7 +267,8 @@ class IPAdapterXL(IPAdapter):
|
|
267 |
uncond_image_prompt_embeds_list.append(uncond_image_prompt_embeds_5)
|
268 |
|
269 |
image_prompt_embeds = torch.cat(image_prompt_embeds_list).mean(dim=0) #.unsqueeze(0)
|
270 |
-
bs_embed, seq_len
|
|
|
271 |
#image_prompt_embeds = image_prompt_embeds.repeat(1, num_samples, 1)
|
272 |
#image_prompt_embeds = image_prompt_embeds.view(bs_embed * num_samples, seq_len, -1)
|
273 |
|
|
|
267 |
uncond_image_prompt_embeds_list.append(uncond_image_prompt_embeds_5)
|
268 |
|
269 |
image_prompt_embeds = torch.cat(image_prompt_embeds_list).mean(dim=0) #.unsqueeze(0)
|
270 |
+
bs_embed, seq_len = image_prompt_embeds.shape
|
271 |
+
#bs_embed, seq_len, _ = image_prompt_embeds.shape
|
272 |
#image_prompt_embeds = image_prompt_embeds.repeat(1, num_samples, 1)
|
273 |
#image_prompt_embeds = image_prompt_embeds.view(bs_embed * num_samples, seq_len, -1)
|
274 |
|