Skip to content

Commit db54f9d

Browse files
committed
fix name
1 parent b2740e1 commit db54f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/sana/pipeline_sana_sprint_img2img.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def prepare_latents(self,
627627
)
628628

629629
image = image.to(device=device, dtype=dtype)
630-
if image.shape[1] != self.latent_channels:
630+
if image.shape[1] != num_channels_latents:
631631
image_latents = self._encode_vae_image(image=image, generator=generator)
632632
else:
633633
image_latents = image

0 commit comments

Comments
 (0)