Skip to content

Commit 9c6e968

Browse files
authored
Refactor StableDiffusion3Img2ImgPipeline to remove redundant code (#8533)
1 parent 2e4841e commit 9c6e968

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py

-2
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,6 @@ def prepare_latents(self, image, timestep, batch_size, num_images_per_prompt, dt
591591
)
592592

593593
image = image.to(device=device, dtype=dtype)
594-
if image.shape[1] == self.vae.config.latent_channels:
595-
init_latents = image
596594

597595
batch_size = batch_size * num_images_per_prompt
598596
if image.shape[1] == self.vae.config.latent_channels:

0 commit comments

Comments
 (0)