Disclaimer: The team releasing DINOv2 did not write a model card for this model so this model card has been written by the Hugging Face team.
Model description
The Vision Transformer (ViT) is a transformer encoder model (BERT-like) pretrained on a large collection of images in a self-supervised fashion.
Images are presented to the model as a sequence of fixed-size patches, which are linearly embedded. One also adds a [CLS] token to the beginning of a sequence to use it for classification tasks. One also adds absolute position embeddings before feeding the sequence to the layers of the Transformer encoder.
Note that this model does not include any fine-tuned heads.
By pre-training the model, it learns an inner representation of images that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled images for instance, you can train a standard classifier by placing a linear layer on top of the pre-trained encoder. One typically places a linear layer on top of the [CLS] token, as the last hidden state of this token can be seen as a representation of an entire image.
Intended uses & limitations
You can use the raw model for feature extraction. See the
model hub
to look for
fine-tuned versions on a task that interests you.
misc{oquab2023dinov2,
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},
primaryClass={cs.CV}
}
Runs of facebook dinov2-base on huggingface.co
15.4M
Total runs
564.5K
24-hour runs
1.3M
3-day runs
2.9M
7-day runs
6.1M
30-day runs
More Information About dinov2-base huggingface.co Model
dinov2-base huggingface.co is an AI model on huggingface.co that provides dinov2-base's model effect (), which can be used instantly with this facebook dinov2-base model. huggingface.co supports a free trial of the dinov2-base model, and also provides paid use of the dinov2-base. Support call dinov2-base model through api, including Node.js, Python, http.
dinov2-base huggingface.co is an online trial and call api platform, which integrates dinov2-base's modeling effects, including api services, and provides a free online trial of dinov2-base, you can try dinov2-base online for free by clicking the link below.
facebook dinov2-base online free url in huggingface.co:
dinov2-base is an open source model from GitHub that offers a free installation service, and any user can find dinov2-base on GitHub to install. At the same time, huggingface.co provides the effect of dinov2-base install, users can directly use dinov2-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.