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
- Select the beginning 2-second excerpt (default). Sample 8 frames and decode them as RGB.
- Resize the shorter edge to 224 pixels, then take a center crop of 224 × 224. Interpolation: bilinear.
- Scale channels by 0.00392156862745 and normalize with mean
[0.45, 0.45, 0.45]and standard deviation[0.225, 0.225, 0.225]. - Pass
float32video pixels inBTCHWlayout. 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
- Upstream checkpoint:
facebook/timesformer-base-finetuned-k400. - Pinned revision:
8aaf40ea7d3d282dcb0a5dea01a198320d15d6c0.
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
- Research paper: Is Space-Time Attention All You Need for Video Understanding?
- Source checkpoint: facebook/timesformer-base-finetuned-k400
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
Model tree for EIDORA/TimeSformer_Base_K400
Base model
facebook/timesformer-base-finetuned-k400