Update pipeline_stable_diffusion_3_ipa.py
Browse files
pipeline_stable_diffusion_3_ipa.py
CHANGED
|
@@ -1198,8 +1198,8 @@ class StableDiffusion3Pipeline(DiffusionPipeline, SD3LoraLoaderMixin, FromSingle
|
|
| 1198 |
print('catted embeds list with meanout shape: ',clip_image_embeds_cat_list.shape)
|
| 1199 |
#seq_len, _ = clip_image_embeds_cat_list.shape
|
| 1200 |
#clip_image_embeds_cat_list_repeat = clip_image_embeds_cat_list.repeat(1, 1, 1)
|
| 1201 |
-
clip_image_embeds_view = clip_image_embeds_cat_list.unsqueeze(0) # Added unsqueeze here instead
|
| 1202 |
-
print('catted embeds unsqueeze shape: ',clip_image_embeds_view.shape)
|
| 1203 |
#clip_image_embeds_view = clip_image_embeds_view.view(1, seq_len, -1)
|
| 1204 |
#print('catted viewed: ',clip_image_embeds_view.shape)
|
| 1205 |
zeros_tensor = torch.zeros_like(clip_image_embeds_view)
|
|
|
|
| 1198 |
print('catted embeds list with meanout shape: ',clip_image_embeds_cat_list.shape)
|
| 1199 |
#seq_len, _ = clip_image_embeds_cat_list.shape
|
| 1200 |
#clip_image_embeds_cat_list_repeat = clip_image_embeds_cat_list.repeat(1, 1, 1)
|
| 1201 |
+
clip_image_embeds_view = clip_image_embeds_cat_list #.unsqueeze(0) # Added unsqueeze here instead
|
| 1202 |
+
#print('catted embeds unsqueeze shape: ',clip_image_embeds_view.shape)
|
| 1203 |
#clip_image_embeds_view = clip_image_embeds_view.view(1, seq_len, -1)
|
| 1204 |
#print('catted viewed: ',clip_image_embeds_view.shape)
|
| 1205 |
zeros_tensor = torch.zeros_like(clip_image_embeds_view)
|