Skip to content

Commit

Permalink
fix cogvideox autoencoder decode (huggingface#9569)
Browse files Browse the repository at this point in the history
Co-authored-by: Aryan <[email protected]>
  • Loading branch information
Xiang-cd and a-r-r-o-w authored Oct 2, 2024
1 parent 61d3764 commit 7f323f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ def _decode(self, z: torch.Tensor, return_dict: bool = True) -> Union[DecoderOut
return self.tiled_decode(z, return_dict=return_dict)

frame_batch_size = self.num_latent_frames_batch_size
num_batches = num_frames // frame_batch_size
num_batches = max(num_frames // frame_batch_size, 1)
conv_cache = None
dec = []

Expand Down

0 comments on commit 7f323f0

Please sign in to comment.