Skip to content

Commit 070a985

Browse files
committed
fix shape
1 parent e2a4a93 commit 070a985

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,8 @@ def __call__(
860860
f"After adjusting the num_inference_steps by strength parameter: {strength}, the number of pipeline"
861861
f"steps is {num_inference_steps} which is < 1 and not appropriate for this pipeline."
862862
)
863-
latent_timestep = timesteps[:1].repeat(batch_size * num_images_per_prompt)
863+
#latent_timestep = timesteps[:1].repeat(batch_size * num_images_per_prompt)
864+
latent_timestep = timesteps[:1]
864865

865866
# 5. Prepare latents.
866867
latent_channels = self.transformer.config.in_channels

0 commit comments

Comments
 (0)