Self-supervised vision models that produce general-purpose image features
open sourceApache-2.0free
DINOv2 is Meta AI Research's family of self-supervised vision transformer models, with PyTorch code, that turn images into general-purpose visual features: they work across domains with only a linear layer on top for classification, retrieval, depth estimation or segmentation, without fine-tuning. The backbones come in four sizes, from ViT-S/14 (21M parameters) to ViT-g/14 (1.1B), with and without registers, and load through PyTorch Hub; the repository also ships linear classifier, depth estimation and semantic segmentation heads. Code and weights are Apache-2.0.
Problems it solves
- get image embeddings for similarity search without training a model
- a pretrained vision backbone to put a small classifier on top of
- estimate depth or segment images with a frozen feature extractor
Features
- image features usable with a linear layer, no fine-tuning
- four backbone sizes from 21M to 1.1B parameters, with and without registers
- loads through PyTorch Hub
- pretrained classifier, depth estimation and segmentation heads
Limitations
Alternatives
The same job
These do what DINOv2 does.
- Vision Transformer (ViT) and MLP-Mixer Google Research's pretrained Vision Transformer and MLP-Mixer image models with JAX/Flax fine-tuning code
- potion-retrieval-32M Minish's static embedding model optimised for retrieval
- CLIP (OpenAI) OpenAI's open image-text model for zero-shot image classification
- all-MiniLM-L6-v2 Sentence Transformers model that maps sentences and paragraphs to a 384-dimensional vector space
- Cohere Embed Cohere's multimodal embedding models: text, images and PDF pages in one vector space, 128k context
- nomic-embed-text-v1.5 Resizable production embeddings with Matryoshka Representation Learning
