1inkusFace commited on
Commit
ea38912
·
verified ·
1 Parent(s): ba852e7

Update pipeline_stable_diffusion_3_ipa.py

Browse files
Files changed (1) hide show
  1. pipeline_stable_diffusion_3_ipa.py +1 -1
pipeline_stable_diffusion_3_ipa.py CHANGED
@@ -1197,7 +1197,7 @@ class StableDiffusion3Pipeline(DiffusionPipeline, SD3LoraLoaderMixin, FromSingle
1197
  image_prompt_embeds_list.append(clip_image_embeds_5)
1198
 
1199
  #clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list).mean(dim=0)
1200
- clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list)
1201
  print('catted embeds list with mean: ',clip_image_embeds_cat_list.shape)
1202
  #seq_len, _ = clip_image_embeds_cat_list.shape
1203
  #clip_image_embeds_cat_list_repeat = clip_image_embeds_cat_list.repeat(1, 1, 1)
 
1197
  image_prompt_embeds_list.append(clip_image_embeds_5)
1198
 
1199
  #clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list).mean(dim=0)
1200
+ clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list, dim=1)
1201
  print('catted embeds list with mean: ',clip_image_embeds_cat_list.shape)
1202
  #seq_len, _ = clip_image_embeds_cat_list.shape
1203
  #clip_image_embeds_cat_list_repeat = clip_image_embeds_cat_list.repeat(1, 1, 1)