TimeSformer is a vision transformer architecture for video that extends the standard attention mechanism into spatiotemporal attention. The model alternates attention along spatial and temporal dimensions (or designs variants like divided attention) so that it can capture both appearance and motion cues in video. Because the attention is global across frames, TimeSformer can reason about dependencies across long time spans, not just local neighborhoods. The official implementation in PyTorch provides configurations, pretrained models, and training scripts that make it straightforward to evaluate or fine-tune on video datasets. TimeSformer was influential in showing that pure transformer architectures—without convolutional backbones—can perform strongly on video classification tasks. Its flexible attention design allows experimenting with different factoring (spatial-then-temporal, joint, etc.) to trade off compute, memory, and accuracy.

Features

  • Spatiotemporal transformer attention for video modeling
  • Variants: divided spatial/temporal attention and joint attention schemas
  • PyTorch reference implementation with pretrained weights and scripts
  • Ability to reason about long-range temporal dependencies globally
  • Configurable parameters for patch size, frames, embedding dimension, and head count
  • Support for fine-tuning across video classification and recognition benchmarks

Project Samples

Project Activity

See All Activity >

Categories

Video, AI Models

License

Creative Commons Attribution License

Follow TimeSformer

TimeSformer Web Site

Other Useful Business Software
Premier Construction Software Icon
Premier Construction Software

Premier is a global leader in financial construction ERP software.

Rated #1 Construction Accounting Software by Forbes Advisor in 2022 & 2023. Our modern SAAS solution is designed to meet the needs of General Contractors, Developers/Owners, Homebuilders & Specialty Contractors.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of TimeSformer!

Additional Project Details

Programming Language

Python

Related Categories

Python Video Software, Python AI Models

Registered

2025-10-07