Image Feature Extraction
Transformers
Safetensors
motif_vision
feature-extraction
motif
vision-transformer
self-supervised
video
custom_code
Instructions to use Motif-Technologies/Motif-Vision-Encoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Motif-Technologies/Motif-Vision-Encoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="Motif-Technologies/Motif-Vision-Encoder", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Motif-Technologies/Motif-Vision-Encoder", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
image change
#1
by gkalstn0 - opened
Files changed (6)
33 unmodified lines343536373833 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text*.gif filter=lfs diff=lfs merge=lfs -textassets/architecture.png filter=lfs diff=lfs merge=lfs -textassets/dense_attention_comparison.png filter=lfs diff=lfs merge=lfs -text33 unmodified lines34353633 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text*.gif filter=lfs diff=lfs merge=lfs -text
12 unmodified lines1314151617181920212223242526272829303132333435369 unmodified lines4647484950515225 unmodified lines7879808182838485868710 unmodified lines989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813912 unmodified lines# Motif Vision EncoderMotif Vision Encoder is a unified image + video self-supervised vision encoder on a ViTbackbone. A single 3D-convolutional tokenizer ingests both modalities — an image is a1-frame clip (`T=1`), a video is `T>1` — so the same weights produce dense patch-levelfeatures and a language-aligned global (CLS) representation.Trained on **~1/3 the data of DINOv3** (0.5B vs 1.7B samples), it still reaches competitiveperformance across image and video benchmarks — and leads on DAVIS video tracking.<p align="center"><img src="assets/haaland_attn_blk20.gif" width="480" alt="Point tracking on a video clip: Motif vs V-JEPA 2.1"/></p><p align="center"><em>Point tracking on a video clip (top: Motif, bottom: V-JEPA 2.1) — a query point propagated across frames by patch-feature cosine similarity. Motif tracks the subject more reliably than V-JEPA 2.1.</em></p>- **Architecture**: ViT-7B (embed 4096 / depth 40 / heads 32), patch 16, 3D axial RoPE(`base=100`), SwiGLU FFN, LayerScale, per-head QK-norm, gated attention, 4 register tokens.- **Tokenizer**: `Conv3d(kernel=stride=(tubelet, patch, patch))` — image `(B,3,H,W)` → `T=1`,video `(B,T,3,H,W)`. Token layout `[CLS] + [register × 4] + [patch × N]`.## Usage9 unmodified linesurl = "http://images.cocodataset.org/val2017/000000039769.jpg"image = load_image(url)repo = "Motif-Technologies/Motif-Vision-Encoder"processor = AutoImageProcessor.from_pretrained(repo)model = AutoModel.from_pretrained(repo, trust_remote_code=True, dtype=torch.bfloat16).to("cuda").eval()25 unmodified lines## Model details<p align="center"><img src="assets/architecture.png" width="820" alt="Motif Vision Encoder architecture: image and video inputs, patch embedding, 40-block transformer stack, and transformer block internals"/></p>| | ||---|---|| Backbone | ViT-7B, patch 16, embed 4096, depth 40, heads 32, SwiGLU |10 unmodified lines## EvaluationCompared against the strongest publicly reported self-supervised / vision backbones. Higher isbetter for every column. Best comparable value per column in bold, second best <u>underlined</u>.DAVIS S/M/L follow the DINOv3 protocol (J&F-mean at video short side 420/480, 840/960,1260/1440 px). V-JEPA 2.1 is not part of the DINOv3 Table 5 tracking benchmark, so only itssingle-resolution (S) figure is available.| Model | Training<br>data | DAVIS S<br>J&F ↑ | DAVIS M<br>J&F ↑ | DAVIS L<br>J&F ↑ | ImageNet-1K<br>lin. probe ↑ | ADE20K<br>mIoU ↑ | K400 ↑ ||---|---|---|---|---|---|---|---|| **Motif Vision Encoder** | 0.5B | **73.8** | **80.4** | **83.4** | 87.4 | <u>52.0</u> | 87.4 || DINOv3 | 1.7B | <u>71.1</u> | <u>79.7</u> | <u>83.3</u> | 88.4 | **55.9** | <u>87.8</u> || Web-DINO | 2B | 57.2 | 65.8 | 69.5 | 85.9 | 42.7 | 86.8 || PEcore | 5.4B | 48.2 | 53.1 | 49.8 | **89.3** | 38.9 | **87.9** || SigLIP2 | 10B | 56.1 | 62.3 | 62.9 | <u>89.1</u> | 45.4 | 86.9 || OpenCLIP | 2B | – | – | – | – | – | – || V-JEPA 2.1 | 0.022B | 69.0 | – | – | 85.5 | 47.9 | 87.7 |Protocol: DINOv3-style linear/attentive probes for image tasks; V-JEPA 2-style protocol forvideo. Baseline DAVIS / ADE20K / K400 figures are taken from the DINOv3 technical report'sunified evaluation (Tab. 3, 5, 6) and ImageNet from Tab. 7; OpenCLIP is not in that report andits benchmarks are not reported under a comparable protocol.Motif is state of the art on DAVIS video tracking at every resolution (74.0 / 80.5 / 83.5 J&F)and stays competitive on the other image and video benchmarks, using roughly 1/3 of DINOv3'straining data (~0.5B samples).<p align="center"><img src="assets/davis_mask_propagation.gif" width="820" alt="Mask propagation: ground truth vs DINOv3 vs Motif"/></p><p align="center"><img src="assets/dense_attention_comparison.png" width="820" alt="Dense attention and feature-similarity comparison across Motif, DINOv3, V-JEPA 2.1, and SigLIP2"/></p><p align="center"><em>Dense features on a single image (768px). Columns: query point, CLS attention, query-point attention, patch-feature cosine similarity. Motif and DINOv3 keep attention and similarity tightly localized on the queried object, while V-JEPA 2.1 and SigLIP2 are noticeably noisier.</em></p>## LicenseReleased under the **MIT License** (see `LICENSE`). The model was trained on data governed by therespective dataset licenses; downstream users are responsible for compliance with those terms.12 unmodified lines131415161718192021222324252627282930313233343536379 unmodified lines4748495051525325 unmodified lines79808182838410 unmodified lines959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214312 unmodified lines# Motif Vision EncoderMotif Vision Encoder is a **unified image + video** self-supervised vision encoder on a ViTbackbone. A single **3D-convolutional tokenizer** ingests both modalities — an image is a1-frame clip (`T=1`), a video is `T>1` — so the same weights produce **dense patch-levelfeatures** and a **language-aligned global (CLS) representation**.Trained on **~1/3 the data of DINOv3** (0.5B vs 1.7B samples), it still reaches competitiveperformance across image and video benchmarks — and leads on DAVIS video tracking.<p align="center"><img src="assets/haaland_full_attn_blk20.gif" width="480" alt="Point tracking on a video clip: Motif vs V-JEPA 2.1"/></p><p align="center"><em>Point tracking on a video clip (top: Motif, bottom: V-JEPA 2.1) — a query point propagated across frames by patch-feature cosine similarity. Motif stays locked on the subject noticeably better than V-JEPA 2.1.</em></p>- **Architecture**: ViT-7B (embed 4096 / depth 40 / heads 32), patch 16, 3D axial RoPE(`base=100`), SwiGLU FFN, LayerScale, per-head QK-norm, gated attention, 4 register tokens.- **Tokenizer**: `Conv3d(kernel=stride=(tubelet, patch, patch))` — image `(B,3,H,W)` → `T=1`,video `(B,T,3,H,W)`. Token layout `[CLS] + [register × 4] + [patch × N]`.- **This repo**: inference-only. Weights + self-contained `modeling_motif_vision_encoder.py` (loadedvia `trust_remote_code`). Training/eval code lives in the GitHub repo.## Usage9 unmodified linesurl = "http://images.cocodataset.org/val2017/000000039769.jpg"image = load_image(url)repo = "Motif-Technologies/Motif-Vision-Encoder-7B"processor = AutoImageProcessor.from_pretrained(repo)model = AutoModel.from_pretrained(repo, trust_remote_code=True, dtype=torch.bfloat16).to("cuda").eval()25 unmodified lines## Model details| | ||---|---|| Backbone | ViT-7B, patch 16, embed 4096, depth 40, heads 32, SwiGLU |10 unmodified lines## EvaluationCompared against the strongest publicly reported self-supervised / vision backbones. Higher isbetter for every column **except KITTI depth** (lower is better). Best **comparable** value percolumn in **bold**, second best <u>underlined</u>; the footnoted figure (‡) is measured under adifferent protocol and is excluded from the ranking.DAVIS S/M/L follow the DINOv3 protocol (J&F-mean at video short side 420/480, 840/960,1260/1440 px). V-JEPA 2.1 is not part of the DINOv3 Table 5 tracking benchmark, so only itssingle-resolution (S) figure is available.| Model | Training<br>data | DAVIS S<br>J&F ↑ | DAVIS M<br>J&F ↑ | DAVIS L<br>J&F ↑ | ImageNet-1K<br>lin. probe ↑ | ADE20K<br>mIoU ↑ | K400 ↑ | KITTI<br>depth MSE ↓ ||---|---|---|---|---|---|---|---|---|| **Motif Vision Encoder** | 0.5B | **74.0** | **80.5** | **83.5** | 87.2 | <u>52.0</u> | 87.4 | *in progress* || DINOv3 | 1.7B | <u>71.1</u> | <u>79.7</u> | <u>83.3</u> | 88.4 | **55.9** | <u>87.8</u> | **2.3** || PEcore | 5.4B | 48.2 | 53.1 | 49.8 | **89.3** | 38.9 | **87.9** | 4.1 || SigLIP2 | 10B | 56.1 | 62.3 | 62.9 | <u>89.1</u> | 45.4 | 86.9 | – || OpenCLIP | 2B | – | – | – | – | – | – | – || V-JEPA 2.1 | 0.022B | 69.0 | – | – | 85.5 | 47.9 | 87.7 | <u>2.5</u> || VideoMAEv2 | 1.35M | – | – | – | – | – | 90.0<sup>‡</sup> | – |<sub>‡ VideoMAEv2 ViT-g: K400 top-1 after **full fine-tuning**, not the frozen attentive-probe protocol used for the other rows.</sub>Motif sets a new **state of the art on DAVIS video segmentation**, leading at every resolution(74.0 / 80.5 / 83.5 J&F), and stays **competitive across the remaining image and videobenchmarks** — despite training on only **~0.5B samples**, roughly **1/3 of DINOv3's data**.KITTI depth is still being evaluated and will be added as the run completes.Protocol: DINOv3-style linear/attentive probes for image tasks; V-JEPA 2-style protocol forvideo. Baseline DAVIS / ADE20K / K400 / KITTI figures are taken from the DINOv3 technicalreport's unified evaluation (Tab. 3, 5, 6) and ImageNet from Tab. 7; OpenCLIP and VideoMAEv2are not in that report; VideoMAEv2's K400 figure is cited from its own paper (see ‡), andOpenCLIP's remaining benchmarks are not reported under a comparable protocol.## LicenseReleased under the **MIT License** (see `LICENSE`). The model was trained on data governed by therespective dataset licenses; downstream users are responsible for compliance with those terms.## Citation```bibtex@misc{motif_vision_encoder,title = {Motif Vision Encoder: a unified image/video self-supervised vision encoder},author = {Motif Technologies},year = {2026},howpublished = {\url{https://huggingface.co/Motif-Technologies/Motif-Vision-Encoder-7B}}}```
.gitattributes-2
README.md+42-38
assets/davis_mask_propagation.gifDeleted

Large File Pointer Details
- SHA256: 3092d02d65c4bd712ed1f49c3e8732ba8715cc1e28bd60d6575ee89421c70a1f
- Pointer size: 133 Bytes
- Size of remote file: 17.4 MB
assets/dense_attention_comparison.pngDeleted

Large File Pointer Details
- SHA256: 578d395000ee6c909af378f4c7093e74983baeff8870e6885de7103e21761285
- Pointer size: 132 Bytes
- Size of remote file: 2.9 MB
assets/haaland_attn_blk20.gifDeleted

Large File Pointer Details
- SHA256: 74bdfadd4b22999e7051f6fac7afd002c128c2198f4d9ce9117456c1d4a9a85c
- Pointer size: 132 Bytes
- Size of remote file: 2.47 MB
assets/architecture.png → assets/haaland_full_attn_blk20.gifRenamed

Large File Pointer Details
- SHA256: 47412aadb9dbd433ead3984627be246298afa034ce457c675a6d195a1343d6ae
- Pointer size: 131 Bytes
- Size of remote file: 400 kB

Large File Pointer Details
- SHA256: c1b9e9805ba681824c88b234d4266069cdf6de7e4d0c64046312aa66a337f01c
- Pointer size: 132 Bytes
- Size of remote file: 8.52 MB