SigLIP_Base_Video / README.md
Neelesh-Babu's picture
Expose tested preparation controls and update model documentation
cbac9e7 verified
|
Raw History Blame Contribute Delete
5.27 kB
metadata
library_name: onnx
pipeline_tag: feature-extraction
tags:
  - eidora
  - eidora-model-zoo
  - onnx
  - onnxruntime
  - embeddings
  - video
license: apache-2.0
base_model: google/siglip-base-patch16-224

SigLIP Base — Video Embeddings

Video · Frame-based visual features · Short excerpts

This EIDORA adaptation uses the SigLIP image encoder on eight sampled video frames. It combines the frame vectors into one representation of the clip’s visual content, rather than learning motion directly.

  • Useful for: Comparing scenes and visual content across short clips.
  • Example data: Film excerpts, newsreel footage and recorded performances.
  • Main limitation: Mean pooling discards frame order. Audio, motion-sensitive temporal modelling and transcript input are not supported.
  • Length limit: By default, eight frames from the first two seconds represent each item.

Prepare your data

  • Provide video files. Use MP4, M4V, MOV, MKV, WebM, AVI, MPG/MPEG, TS, MTS, or M2TS. Add the files, a folder, or a ZIP archive as a Media Source, then select that source when running the model. The file must contain a video stream that EIDORA can decode; codec support depends on the decoder, not just the filename extension.
  • Choose the excerpt. By default, EIDORA uses the first two seconds of the first video stream and samples 8 frames at evenly spaced target times. Adjust the excerpt position, custom start time and duration in the model preparation settings. One run input produces one embedding, not a sequence covering the whole video; prepare separate clips to represent several passages.
  • Let EIDORA prepare the frames. Supply the original video. EIDORA decodes RGB frames and stretches each to 224 × 224 pixels using bicubic interpolation, then rescales and normalizes the pixels. When the source ends early, the last available frame is repeated.
  • Select the content to compare. The model input excludes the soundtrack and separate subtitles or transcripts. Text visibly burned into the frames remains part of the image. Keep source identifiers and time offsets for separately prepared clips.
  • Check frame quality. Review aspect-ratio distortion, borders, intertitles, compression artifacts, and recording quality. They may influence which clips appear similar.

Watch the original excerpts to assess what apparent similarities mean. Groups in a projection do not automatically establish the same event, chronology, or provenance.

Technical details

Property Value
Modality Video
Embedding One 768-dimensional vector per video excerpt
Architecture SigLIP Base vision transformer; frame pooling
Input size 224 × 224 pixels per frame
Preparation Stretch to 224 × 224; bicubic interpolation; BTCHW
Pixel normalization Rescale by 1/255; mean [0.5, 0.5, 0.5]; standard deviation [0.5, 0.5, 0.5]
Frame sampling 8 frames; 2-second beginning excerpt by default
Pooling L2-normalize each frame vector, average, then L2-normalize
Normalization and comparison L2 normalization; cosine similarity
Input tensors pixel_values; float32, [1, 8, 3, 224, 224]
Output tensor embedding; float32, [1, 768]
Runtime format ONNX, opset 17
Package version 1.1.0
Minimum EIDORA version 0.3.0
Model graph / package size Approximately 372 MB / 372 MB
Declared execution providers CUDA, CPU, CoreML
Adjustable preparation controls Resize mode, Interpolation, Crop position, Short-edge size, Excerpt position, Custom start time, Excerpt duration; original defaults preserved.

Declared providers depend on the installed runtime, operating system, and hardware; this list does not establish that each provider has been tested.

Source and citation

Training data: English image–text pairs from WebLI, using a pairwise sigmoid image–text learning objective, as described in the pinned checkpoint card and paper. The full item-level training manifest is not established by those sources.

EIDORA uses the vision encoder alone, applies it independently to eight sampled frames and averages normalized embeddings. The adaptation has no additional temporal video training; the output is not a joint audio–video or video–text embedding.

License: Apache-2.0 is listed by the checkpoint and package specification. Retain attribution and applicable notices.

BibTeX:

@inproceedings{zhai2023siglip,
  title={Sigmoid Loss for Language Image Pre-Training},
  author={Zhai, Xiaohua and Mustafa, Basil and Kolesnikov, Alexander and Beyer, Lucas},
  booktitle={ICCV},
  year={2023},
  pages={11975--11986}
}

Package settings are recorded in config.yaml. See the EIDORA website for application guidance.