Skip to content

Commit

Permalink
missing the post vq temporal conv during inference
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jan 7, 2025
1 parent e5238a1 commit 2da12f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions genie2_pytorch/genie2.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,12 @@ def generate(
if self.latent_channel_first:
tokens = rearrange(tokens, 'b ... d -> b d ...')

# maybe post vq temporal conv

tokens = self.post_vq_transform(tokens)

# maybe fold time into batch for certain decoders

need_fold_time_into_batch = not self.is_video_enc_dec

if need_fold_time_into_batch:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "genie2-pytorch"
version = "0.0.20"
version = "0.0.21"
description = "Genie2"
authors = [
{ name = "Phil Wang", email = "[email protected]" }
Expand Down

0 comments on commit 2da12f0

Please sign in to comment.