Skip to content

Commit 6c0b551

Browse files
committed
randn_tensor argument passing changed
1 parent 662e14a commit 6c0b551

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/maxdiffusion/pipelines/wan/wan_pipeline_i2v_2p1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def prepare_latents(
9494
shape = (batch_size, num_channels_latents, num_latent_frames, latent_height, latent_width)
9595

9696
if latents is None:
97-
latents = randn_tensor(rng, shape, self.config, dtype)
97+
latents = randn_tensor(shape, rng, self.config, dtype)
9898
else:
9999
latents = latents.astype(dtype)
100100
latent_condition, _ = self.prepare_latents_i2v_base(image, num_frames, dtype, last_image)

src/maxdiffusion/pipelines/wan/wan_pipeline_i2v_2p2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def prepare_latents(
9393
shape = (batch_size, num_channels_latents, num_latent_frames, latent_height, latent_width)
9494

9595
if latents is None:
96-
latents = randn_tensor(rng, shape, self.config, dtype)
96+
latents = randn_tensor(shape, rng, self.config, dtype)
9797
else:
9898
latents = latents.astype(dtype)
9999

0 commit comments

Comments
 (0)