Update pipeline_stable_diffusion_3_ipa.py
Browse files
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: ',
|
1209 |
clip_image_embeds_stack_list = torch.stack(image_prompt_embeds_list).mean(dim=0)
|
1210 |
-
print('stacked with mean shape 1: ',
|
1211 |
clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list)
|
1212 |
-
print('catted without mean shape 1: ',
|
1213 |
clip_image_embeds_stack_list = torch.stack(image_prompt_embeds_list)
|
1214 |
-
print('stacked without mean shape 1: ',
|
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
|