Load a pretrained DINOv2 model and extract image features in a few lines of Python to power a downstream image classifier.
Use the included depth estimation notebook to add monocular depth sensing to a computer vision pipeline.
Apply DINOv2 features to medical or microscopy imaging using the XRay-DINO or Cell-DINO domain-specific variants.
Fine-tune a small linear classifier on top of frozen DINOv2 features without retraining the full billion-parameter model.
| facebookresearch/dinov2 | chenyuntc/pytorch-book | kubernetes/community | |
|---|---|---|---|
| Stars | 12,835 | 12,837 | 12,860 |
| Language | Jupyter Notebook | Jupyter Notebook | Jupyter Notebook |
| Setup difficulty | moderate | moderate | easy |
| Complexity | 3/5 | 3/5 | 1/5 |
| Audience | researcher | researcher | developer |
Figures from each repo's GitHub metadata at analysis time.
Larger model variants require substantial GPU memory, the 1.1B model will not fit on most consumer graphics cards.
DINOv2 is a computer vision AI model from Meta AI Research that learns to understand images without any labels or human annotations. Most image recognition systems require large amounts of labeled training data, where humans tag each photo. DINOv2 was trained on 142 million images using a self-supervised approach, meaning it learned by finding patterns in the images themselves rather than from labels. The result is a model that produces rich, general-purpose image features. These features describe what is in a photo in a compact numerical form that other, simpler systems can then use for tasks like classifying images, detecting objects, estimating depth, or identifying things in video. Because the features are general, they transfer well to new tasks without needing to retrain the whole model from scratch. Four model sizes are available, ranging from 21 million parameters up to 1.1 billion. Larger models are more capable but require more computing resources. All models can be loaded in a few lines of Python code using PyTorch. The repository also includes specialized variants for biological microscopy imaging (Cell-DINO) and medical X-ray analysis (XRay-DINO), each trained on domain-specific image data. This repository contains the pretrained model weights and the Python code to load and use them. It also includes Jupyter notebooks demonstrating specific tasks such as depth estimation and image segmentation. A follow-on project called DINOv3 has since been released by the same team, continuing this line of research. The full README is longer than what was shown.
DINOv2 is Meta's self-supervised image AI trained on 142 million unlabeled images, producing general-purpose visual features usable for classification, object detection, depth estimation, and segmentation without retraining.
Mainly Jupyter Notebook. The stack also includes Python, PyTorch, Jupyter Notebook.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.