Unverified Commit 9c6e9684 authored by Tolga Cangöz's avatar Tolga Cangöz Committed by GitHub
Browse files

Refactor `StableDiffusion3Img2ImgPipeline` to remove redundant code (#8533)

parent 2e4841ef
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment