image-feature-extraction · DINOv3ViTModel (dinov3_vit) · CPU WASM q8 (21.94 MB) / WebGPU q4 (14.83 MB) · DINOv3 License

Meta DINOv3 ViT-S/16 — Dense Patch Features & 3-Channel PCA Explorer

Meta DINOv3 ViT-S/16 is Meta's next-generation self-supervised vision foundation backbone trained on 1.69 billion images (LVD-1689M) with 2D axial RoPE and 4 dedicated register tokens. One in-browser forward pass returns a [1, 201, 384] tensor — a global [CLS] token, 4 register tokens that absorb background scratchpad state, and 14×14 = 196 crystal-clear spatial patches that separate object parts via 3-channel RGB PCA with zero labels.

Custom Meta DINOv3 License (Aug 14, 2025 — not Apache-2.0 or MIT): Governed by the DINOv3 License — a custom royalty-free, worldwide, non-transferable license permitting redistribution and derivatives subject to redistributing the license, research attribution, trade-control compliance, and no reverse-engineering.

At a glance

Verified model metadata from Hugging Face config.json and ONNX blob inspection
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

Probing browser WebGPU capabilities…

Initialise Meta DINOv3 ViT-S/16 above, then pick a photo or upload your own to inspect its 196 dense patch features.

Photo: – Click or hover any 14×14 cell to probe semantic similarity

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.

Index 0 [CLS] (1×384)
Indices 1..4 4 Registers (4×384)
Indices 5..200 14×14 Patches (196×384)

PCA explained variance (PC1 / PC2 / PC3): waiting for forward pass…

Backend–
Tensor Shape–
Infer Latency–
Reg Mean / Patch Med–
Patch Max / Med–
PCA Top-3 Var–

2. Explore the DINOv3 Use-Case Ladder