At a glance
| Upstream model | facebook/dinov3-vits16-pretrain-lvd1689m (Meta AI, LVD-1689M 1.69B-image self-supervised pretraining) |
|---|---|
| Browser ONNX repo | onnx-community/dinov3-vits16-pretrain-lvd1689m-ONNX |
| License | DINOv3 License (custom Meta license, Aug 14, 2025 · ai.meta.com/resources/models-and-libraries/dinov3-license) — custom license, not Apache-2.0/MIT |
| Task & architecture |
image-feature-extraction · DINOv3ViTModel
(dinov3_vit, 12 layers, 384-d hidden, 6 heads, 1536 MLP, GELU,
224×224 resize, patch 16, 2D axial RoPE θ=100,
4 register tokens)
|
| Output tensor layout |
last_hidden_state shape [1, 201, 384]:
index 0 = [CLS] ·
indices 1..4 = 4 register tokens (skipped before grid reshape) ·
indices 5..200 = 14×14 = 196 spatial patch embeddings
|
| Backend & exact sizes |
CPU WASM q8 (21.94 MB: 0.18 + 21.76 MB external data, universal) ·
WebGPU q4 (14.83 MB: 0.15 + 14.68 MB external data, optional GPU acceleration) ·
fp32 (86.49 MB, documented)
|
| Runtime |
Transformers.js @huggingface/transformers@4.3.0 pinned locally in
worker.js (required for .onnx_data external data sidecars; runs off-main-thread)
|
1. Live Dense Patch Feature & 3-Channel PCA Explorer
Initialise Meta DINOv3 ViT-S/16 above, then pick a photo or upload your own to inspect its 196 dense patch features.
Live [1, 201, 384] Tensor Anatomy
Token indices 1..4 hold DINOv3's 4 register tokens and
are explicitly skipped (slice(5)) before reshaping indices
5..200 into the 14×14 spatial patch grid.
[CLS] (1×384)
PCA explained variance (PC1 / PC2 / PC3): waiting for forward pass…
2. Explore the DINOv3 Use-Case Ladder
Basics · Token Anatomy & Register Lab
Dissect [CLS] vs the 4 registers vs 196 patches, threshold foreground
PCA interactively, and test horizontal-flip & crop invariance.
Practical · Visual Search & Deduplication
Embed a photo gallery into 384-d vectors, rank nearest neighbors by cosine similarity, cluster near-duplicates, and export CSV/JSON.
Wild · Cross-Image Part Correspondence
Click or drag any part on Image A (ear, eye, cup, peak) and watch DINOv3 draw live correspondence arcs onto the matching part in Image B.
Multi-model · DINOv3 ↔ DINOv2 Bench
Compare DINOv3 ViT-S/16 (4 registers + axial RoPE) head-to-head against register-free DINOv2 Small (0 registers) on patch norms & cosine separation.