Spaces:
Running
on
Zero
Running
on
Zero
1inkusFace
commited on
Update pipeline_stable_diffusion_3_ipa.py
Browse files
pipeline_stable_diffusion_3_ipa.py
CHANGED
@@ -1200,7 +1200,7 @@ class StableDiffusion3Pipeline(DiffusionPipeline, SD3LoraLoaderMixin, FromSingle
|
|
1200 |
zeros_tensor = torch.zeros_like(clip_image_embeds_view)
|
1201 |
clip_image_embeds = torch.cat([zeros_tensor, clip_image_embeds_cat_list], dim=1)
|
1202 |
|
1203 |
-
|
1204 |
clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list).mean(dim=0)
|
1205 |
print('catted embeds list with mean: ',clip_image_embeds_cat_list.shape)
|
1206 |
seq_len, _ = clip_image_embeds_cat_list.shape
|
|
|
1200 |
zeros_tensor = torch.zeros_like(clip_image_embeds_view)
|
1201 |
clip_image_embeds = torch.cat([zeros_tensor, clip_image_embeds_cat_list], dim=1)
|
1202 |
|
1203 |
+
'''
|
1204 |
clip_image_embeds_cat_list = torch.cat(image_prompt_embeds_list).mean(dim=0)
|
1205 |
print('catted embeds list with mean: ',clip_image_embeds_cat_list.shape)
|
1206 |
seq_len, _ = clip_image_embeds_cat_list.shape
|