Spaces:
Runtime error
Runtime error
Update pipeline_stable_diffusion_3_ipa.py
Browse files
pipeline_stable_diffusion_3_ipa.py
CHANGED
@@ -1208,7 +1208,7 @@ class StableDiffusion3Pipeline(DiffusionPipeline, SD3LoraLoaderMixin, FromSingle
|
|
1208 |
zeros_tensor = torch.zeros_like(clip_image_embeds_view)
|
1209 |
#zeros_tensor = torch.zeros_like(clip_image_embeds_view[:, :image_prompt_embeds_list[0].shape[1], :]) # Make zeros tensor match the sequence length of a single image embedding
|
1210 |
print('zeros: ',zeros_tensor.shape)
|
1211 |
-
|
1212 |
clip_image_embeds = clip_image_embeds_view
|
1213 |
print('embeds shape: ', clip_image_embeds.shape)
|
1214 |
|
|
|
1208 |
zeros_tensor = torch.zeros_like(clip_image_embeds_view)
|
1209 |
#zeros_tensor = torch.zeros_like(clip_image_embeds_view[:, :image_prompt_embeds_list[0].shape[1], :]) # Make zeros tensor match the sequence length of a single image embedding
|
1210 |
print('zeros: ',zeros_tensor.shape)
|
1211 |
+
clip_image_embeds = torch.cat([zeros_tensor, clip_image_embeds_view], dim=0)
|
1212 |
clip_image_embeds = clip_image_embeds_view
|
1213 |
print('embeds shape: ', clip_image_embeds.shape)
|
1214 |
|