dinov2-I16

Patch for DinoV2 training code to support PyTorch 2.4

Fork A fork of zinccat/dinov2-patch; the README may describe the upstream project.

Overview

This is a patch for the original repository to make it work with the latest version of PyTorch (>2.1).

Install the dependencies using the following command:

Then run the following command to install the package:

Then add the training images to data/train.

You can now start the training using torchrun instead of submitit. The following command will start the training on 2 GPUs:

Thanks a lot to https://github.com/csaroff/dinov2 for an example of custom dataset.

:new: [2023-10-26] Added DINOv2 backbones with registers, following Vision Transformers Need Registers.

Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Patrick Labatut, Armand Joulin, Piotr Bojanowski

[Paper #1] Paper #2] [Blog] [Demo] [BibTeX]

https://github.com/facebookresearch/dinov2/assets/60359573/f168823e-7922-415a-b429-578badf5c356

A corresponding model card is included in the repository.

From the project’s README on GitHub.

At a glance

RepositoryKentucky-Open-Science/dinov2-I16
Research areaForks of other projects
Primary languageJupyter Notebook
LanguagesJupyter Notebook 65.6%, Python 34.3%, Shell 0.2%
LicenseApache-2.0
Stars / forks1 / 1
Open issues and pull requests4
Created2024-09-03
Last push2026-03-12
Default branchmain
Forked fromzinccat/dinov2-patch — Patch for DinoV2 training code to support PyTorch 2.4

What the README covers

Top contributors

Get the code

git clone https://github.com/Kentucky-Open-Science/dinov2-I16.git