TimeSformer Base K400 — Video Embeddings

TimeSformer uses transformer attention across frames to represent a short video clip. This EIDORA package extracts a 768-dimensional visual embedding from a Kinetics-400-fine-tuned checkpoint.

Recommended Use

Use TimeSformer to compare short segments by visual content across time, rather than only comparing individual still frames. It may help locate clips with recurring movement patterns or shot structure. It works on selected frames, not on the film’s soundtrack or spoken narration.

Limitations

  • The source checkpoint was fine-tuned for Kinetics-400 actions, so archival or non-action footage may behave differently.
  • Only eight sampled frames from the configured two-second excerpt contribute to each embedding. This is not a summary of a long video.
  • The source license is non-commercial (CC BY-NC 4.0).
  • The model does not accept audio or transcript text.

Input

What you provide: a video file. EIDORA decodes it and supplies sampled RGB frames; the audio track is not input to this model.

ONNX input Type Shape Prepared from
pixel_values float32 [batch, 8, 3, 224, 224] frames

Output

embedding is float32 with shape [batch, 768]. The 768-dimensional embedding is L2-normalized for cosine similarity. It represents only the selected visual excerpt, not a full-length film or its soundtrack.

Preprocessing

  1. Select the beginning 2-second excerpt (default). Sample 8 frames and decode them as RGB.
  2. Resize the shorter edge to 224 pixels, then take a center crop of 224 × 224. Interpolation: bilinear.
  3. Scale channels by 0.00392156862745 and normalize with mean [0.45, 0.45, 0.45] and standard deviation [0.225, 0.225, 0.225].
  4. Pass float32 video pixels in BTCHW layout. Frame decoding, sampling and normalization happen in EIDORA, outside the ONNX graph.

Model Source and Architecture

TimeSformer Base represents space and time with transformer attention. In this package, the Kinetics classification layer is bypassed; EIDORA returns the final encoder CLS-token vector and normalizes it to 768 dimensions.

Training Data and Checkpoint Provenance

The source checkpoint is facebook/timesformer-base-finetuned-k400, fine-tuned for Kinetics-400 human-action recognition. The EIDORA export changes how the checkpoint is read out, not its training objective.

Research Context

Research paper: Is Space-Time Attention All You Need for Video Understanding?

Bertasius, Wang and Torresani investigate attention over space and time for video understanding. For EIDORA, the resulting temporal visual features are useful for clip comparison, without treating the pretrained action classes as the new output.

Attribution and Licensing

The checkpoint and package metadata list CC BY-NC 4.0 (non-commercial). Users must respect the attribution and non-commercial conditions; conversion to ONNX does not change those terms.

References

Suggested research citation (from the packaged configuration):

@inproceedings{bertasius2021space,
  title={Is Space-Time Attention All You Need for Video Understanding?},
  author={Bertasius, Gedas and Wang, Heng and Torresani, Lorenzo},
  booktitle={International Conference on Machine Learning},
  year={2021}
}

Package Information

  • Repository: EIDORA/TimeSformer_Base_K400
  • Package schema / version: 3 / 1.0.0
  • Modality: video
  • ONNX graph(s): model.onnx
  • Configuration: config.yaml
  • Declared ONNX Runtime providers: CUDAExecutionProvider, CPUExecutionProvider, CoreMLExecutionProvider

Execution-provider availability depends on the user’s EIDORA installation, operating system and hardware. The declared providers are configuration options, not a guarantee of equal speed or identical hardware use. The config.yaml file defines the exact runtime input/output contract.

Downloads last month
61
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for EIDORA/TimeSformer_Base_K400

Quantized
(2)
this model

Collection including EIDORA/TimeSformer_Base_K400

Paper for EIDORA/TimeSformer_Base_K400