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 @@ -611,7 +611,7 @@ def prepare_cond_latents_and_mask(
tuple: (cond_latents_concat, mask_concat) - both are zero tensors for t2v
"""

batch, channels, frames, height, width = latents.shape
batch, channels, frames, latent_height, latent_width = latents.shape

image_latents = self._get_image_latents(
vae=self.vae,
Expand All @@ -626,7 +626,7 @@ def prepare_cond_latents_and_mask(
latent_condition[:, :, 1:, :, :] = 0
latent_condition = latent_condition.to(device=device, dtype=dtype)

latent_mask = torch.zeros(batch, 1, frames, height, width, dtype=dtype, device=device)
latent_mask = torch.zeros(batch, 1, frames, latent_height, latent_width, dtype=dtype, device=device)
latent_mask[:, :, 0, :, :] = 1.0

return latent_condition, latent_mask
Expand Down
Loading