1inkusFace commited on
Commit
9a9882c
·
verified ·
1 Parent(s): 04cc156

Update pipeline_stable_diffusion_3_ipa.py

Browse files
Files changed (1) hide show
  1. pipeline_stable_diffusion_3_ipa.py +4 -4
pipeline_stable_diffusion_3_ipa.py CHANGED
@@ -1205,13 +1205,13 @@ class StableDiffusion3Pipeline(DiffusionPipeline, SD3LoraLoaderMixin, FromSingle
1205
  # FAILS clip_image_embeds = torch.cat(torch.stack(image_prompt_embeds_list), dim=0).mean(dim=0)
1206
  # FAILS TIMESTEPS clip_image_embeds = torch.cat(image_prompt_embeds_list, dim=0).mean(dim=0)
1207
  clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list).mean(dim=0)
1208
- print('catted with mean shape 1: ', stacked_image_embeds.shape)
1209
  clip_image_embeds_stack_list = torch.stack(image_prompt_embeds_list).mean(dim=0)
1210
- print('stacked with mean shape 1: ', stacked_image_embeds.shape)
1211
  clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list)
1212
- print('catted without mean shape 1: ', stacked_image_embeds.shape)
1213
  clip_image_embeds_stack_list = torch.stack(image_prompt_embeds_list)
1214
- print('stacked without mean shape 1: ', stacked_image_embeds.shape)
1215
 
1216
 
1217
  # 1. Stack the image embeddings
 
1205
  # FAILS clip_image_embeds = torch.cat(torch.stack(image_prompt_embeds_list), dim=0).mean(dim=0)
1206
  # FAILS TIMESTEPS clip_image_embeds = torch.cat(image_prompt_embeds_list, dim=0).mean(dim=0)
1207
  clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list).mean(dim=0)
1208
+ print('catted with mean shape 1: ', clip_image_embeds_cat_list.shape)
1209
  clip_image_embeds_stack_list = torch.stack(image_prompt_embeds_list).mean(dim=0)
1210
+ print('stacked with mean shape 1: ', clip_image_embeds_stack_list.shape)
1211
  clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list)
1212
+ print('catted without mean shape 1: ', clip_image_embeds_cat_list.shape)
1213
  clip_image_embeds_stack_list = torch.stack(image_prompt_embeds_list)
1214
+ print('stacked without mean shape 1: ', clip_image_embeds_stack_list.shape)
1215
 
1216
 
1217
  # 1. Stack the image embeddings