Update pipeline_stable_diffusion_3_ipa.py
Browse files
pipeline_stable_diffusion_3_ipa.py
CHANGED
@@ -1217,7 +1217,7 @@ class StableDiffusion3Pipeline(DiffusionPipeline, SD3LoraLoaderMixin, FromSingle
|
|
1217 |
print('shape 2a: ', average_image_embedf.shape)
|
1218 |
# 3. Create a tensor of zeros with the same shape as the averaged embedding
|
1219 |
zeros_tensor = torch.zeros_like(average_image_embed)
|
1220 |
-
zeros_tensora = torch.zeros_like(average_image_embed)
|
1221 |
print('shape 3: ', zeros_tensor.shape)
|
1222 |
print('shape 3a: ', zeros_tensora.shape)
|
1223 |
# 4. Concatenate the zeros and the average embedding
|
|
|
1217 |
print('shape 2a: ', average_image_embedf.shape)
|
1218 |
# 3. Create a tensor of zeros with the same shape as the averaged embedding
|
1219 |
zeros_tensor = torch.zeros_like(average_image_embed)
|
1220 |
+
zeros_tensora = torch.zeros_like(average_image_embed).unsqueeze(0)
|
1221 |
print('shape 3: ', zeros_tensor.shape)
|
1222 |
print('shape 3a: ', zeros_tensora.shape)
|
1223 |
# 4. Concatenate the zeros and the average embedding
|