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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user