Skip to content

Commit 4580591

Browse files
committed
Fix for multiple videos
1 parent 8e63fe0 commit 4580591

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/maxdiffusion/pipelines/wan/wan_pipeline_i2v_2p2.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@ def prepare_latents(
9797
last_image = last_image.detach().cpu().numpy()
9898
last_image = jnp.array(last_image)
9999

100-
if num_videos_per_prompt > 1:
101-
image = jnp.repeat(image, num_videos_per_prompt, axis=0)
102-
if last_image is not None:
103-
last_image = jnp.repeat(last_image, num_videos_per_prompt, axis=0)
104-
105100
num_channels_latents = self.vae.z_dim
106101
num_latent_frames = (num_frames - 1) // self.vae_scale_factor_temporal + 1
107102
latent_height = height // self.vae_scale_factor_spatial

0 commit comments

Comments
 (0)