Match upstream VAE temporal padding
This commit is contained in:
parent
6dd0b0e737
commit
49bae4ab74
1 changed files with 1 additions and 1 deletions
|
|
@ -316,7 +316,7 @@ class MiniMaxH3VideoVAE(nn.Module):
|
|||
pad_tokens += self.tokens_chunk_size
|
||||
chunks += 1
|
||||
if pad_tokens:
|
||||
z = torch.cat((z, z[:, :, -1:].expand(-1, -1, pad_tokens, -1, -1)), dim=2)
|
||||
z = torch.cat((z, z[:, :, -1:].repeat(1, 1, pad_tokens, 1, 1)), dim=2)
|
||||
output_frames = self._decode_temporal_frame_plan(z.shape[2], chunks, pad_tokens)
|
||||
output = None
|
||||
overlap = None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue