Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,6 @@ def prepare_latents(self, image, timestep, batch_size, num_images_per_prompt, dt
)

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:
Expand Down