Skip to content

Allow to pass mask parameter for temporal transformer in ViVit - #356

Merged
lucidrains merged 4 commits into
lucidrains:mainfrom
eyalmazuz:main
Jan 8, 2026
Merged

Allow to pass mask parameter for temporal transformer in ViVit#356
lucidrains merged 4 commits into
lucidrains:mainfrom
eyalmazuz:main

Conversation

@eyalmazuz

Copy link
Copy Markdown
Contributor

A small QoL update for ViViT, to more efficiently train ViViT videos can be in different length but right now there's no way to "pad video" to allow for batched processing of different length videos.

This feature allows to pad videos to certain length which allow the temporal transformer to ignore padded frames when using batch sizes > 1

@eyalmazuz eyalmazuz changed the title Mask for temporal transformer in ViVit Allow to pass mask parameter for temporal transformer in ViVit Jan 5, 2026
This allows to pad videos to certain length which allow the transformer
to ignore padded frames using batch sizes > 1
@lucidrains

Copy link
Copy Markdown
Owner

@eyalmazuz yea let's do it! thank you Eyal!

@lucidrains
lucidrains merged commit 580258d into lucidrains:main Jan 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants