1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Refactor StableDiffusion3Img2ImgPipeline to remove redundant code (#8533)

This commit is contained in:
Tolga Cangöz
2024-06-13 20:36:46 +03:00
committed by GitHub
parent 2e4841ef1e
commit 9c6e9684a2

View File

@@ -591,8 +591,6 @@ class StableDiffusion3Img2ImgPipeline(DiffusionPipeline):
)
image = image.to(device=device, dtype=dtype)
if image.shape[1] == self.vae.config.latent_channels:
init_latents = image
batch_size = batch_size * num_images_per_prompt
if image.shape[1] == self.vae.config.latent_channels: