DINOv2: Learning Robust Visual Features without Supervision

Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec +21 more
4/14/2023
cs.CV

No official code found. Best implementation: facebookresearch/dinov2 (13,454 stars, Apache-2.0, last commit 2026-04-08). 2 more below.

Abstract

The recent breakthroughs in natural language processing for model pretraining on large quantities of data have opened the way for similar foundation models in computer vision. These models could greatly simplify the use of images in any system by producing all-purpose visual features, i.e., features that work across image distributions and tasks without finetuning. This work shows that existing pretraining methods, especially self-supervised methods, can produce such features if trained on enough curated data from diverse sources. We revisit existing approaches and combine different techniques to scale our pretraining in terms of data and model size. Most of the technical contributions aim at accelerating and stabilizing the training at scale. In terms of data, we propose an automatic pipeline to build a dedicated, diverse, and curated image dataset instead of uncurated data, as typically done in the self-supervised literature. In terms of models, we train a ViT model (Dosovitskiy et al., 2020) with 1B parameters and distill it into a series of smaller models that surpass the best available all-purpose features, OpenCLIP (Ilharco et al., 2021) on most of the benchmarks at image and pixel levels.

View on arXivView PDF

Code Implementations(3)

Apache-2.0

PyTorch code and models for the DINOv2 self-supervised learning method.

13,4541,283Shell, PythonMar 29, 20236 months agoApache-2.0
purnasai/Dino_V2Community62%

Dino V2 for Classification, PCA Visualization, Instance Retrival: https://arxiv.org/abs/2304.07193

20712Python, Jupyter NotebookMay 14, 20233 years ago

In this project, I review and analyze the tools and aspects of the algorithms and methods used in the paper -DINOv2: Learning Robust Visual Features without Supervision (https://arxiv.org/abs/2304.07193). Further mathematical analysis of the loss functions was conducted outside of the scope for this project, and thus was excluded.

00Oct 22, 202512 months ago

Similar Papers

Cite this paper

@article{oquab2023dinov,
  title  = {DINOv2: Learning Robust Visual Features without Supervision},
  author = {Maxime Oquab and Timothée Darcet and Théo Moutakanni and Huy Vo and Marc Szafraniec and Vasil Khalidov and Pierre Fernandez and Daniel Haziza and Francisco Massa and Alaaeldin El-Nouby and Mahmoud Assran and Nicolas Ballas and Wojciech Galuba and Russell Howes and Po-Yao Huang and Shang-Wen Li and Ishan Misra and Michael Rabbat and Vasu Sharma and Gabriel Synnaeve and Hu Xu and Hervé Jegou and Julien Mairal and Patrick Labatut and Armand Joulin and Piotr Bojanowski},
  year   = {2023},
  eprint = {2304.07193},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.07193v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.07193.svg)](https://codeofpaper.com/paper/2304.07193)

Discussion