talira

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

  • Its makers point to the more recent DINOv3 as the continuation of this work.1
  • The X-Ray DINO backbone it can load is under the FAIR Noncommercial Research License, unlike the main Apache-2.0 weights.1

Alternatives

The same job

These do what DINOv2 does.

  1. Vision Transformer (ViT) and MLP-Mixer Google Research's pretrained Vision Transformer and MLP-Mixer image models with JAX/Flax fine-tuning code
  2. potion-retrieval-32M Minish's static embedding model optimised for retrieval
  3. CLIP (OpenAI) OpenAI's open image-text model for zero-shot image classification
  4. all-MiniLM-L6-v2 Sentence Transformers model that maps sentences and paragraphs to a 384-dimensional vector space
  5. Cohere Embed Cohere's multimodal embedding models: text, images and PDF pages in one vector space, 128k context
  6. nomic-embed-text-v1.5 Resizable production embeddings with Matryoshka Representation Learning

Compare DINOv2 with the top 3