1inkusFace commited on
Commit
3618c18
·
verified ·
1 Parent(s): 02e6484

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
@@ -1216,7 +1216,7 @@ class StableDiffusion3Pipeline(DiffusionPipeline, SD3LoraLoaderMixin, FromSingle
1216
 
1217
  clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list).mean(dim=0)
1218
  print('catted embeds list with mean: ',clip_image_embeds_cat_list.shape)
1219
- bs_embed, seq_len, _ = clip_image_embeds_cat_list.shape
1220
  clip_image_embeds_cat_list_repeat = clip_image_embeds_cat_list.repeat(1, 1, 1)
1221
  print('catted embeds repeat: ',clip_image_embeds_cat_list_repeat.shape)
1222
  clip_image_embeds_view = clip_image_embeds_cat_list_repeat.view(bs_embed * 1, seq_len, -1)
 
1216
 
1217
  clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list).mean(dim=0)
1218
  print('catted embeds list with mean: ',clip_image_embeds_cat_list.shape)
1219
+ seq_len, _ = clip_image_embeds_cat_list.shape
1220
  clip_image_embeds_cat_list_repeat = clip_image_embeds_cat_list.repeat(1, 1, 1)
1221
  print('catted embeds repeat: ',clip_image_embeds_cat_list_repeat.shape)
1222
  clip_image_embeds_view = clip_image_embeds_cat_list_repeat.view(bs_embed * 1, seq_len, -1)