Disclaimer: The team releasing DINOv2 with registers 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)
originally introduced
to do supervised image classification on ImageNet.
Next, people figured out ways to make ViT work really well on self-supervised image feature extraction (i.e. learning meaningful features, also called embeddings) on
images without requiring any labels. Some example papers here include
DINOv2
and
MAE
.
The authors of DINOv2 noticed that ViTs have artifacts in attention maps. It’s due to the model using some image patches as “registers”. The authors propose a fix: just add some new tokens (called "register" tokens), which you only use during pre-training (and throw away afterwards). This results in:
no artifacts
interpretable attention maps
and improved performances.
Visualization of attention maps of various models trained with vs. without registers. Taken from the
original paper
.
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{darcet2024visiontransformersneedregisters,
title={Vision Transformers Need Registers},
author={Timothée Darcet and Maxime Oquab and Julien Mairal and Piotr Bojanowski},
year={2024},
eprint={2309.16588},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2309.16588},
}
Runs of facebook dinov2-with-registers-base on huggingface.co
174.5K
Total runs
-1.1K
24-hour runs
-44.5K
3-day runs
-40.9K
7-day runs
11.0K
30-day runs
More Information About dinov2-with-registers-base huggingface.co Model
More dinov2-with-registers-base license Visit here:
dinov2-with-registers-base huggingface.co is an AI model on huggingface.co that provides dinov2-with-registers-base's model effect (), which can be used instantly with this facebook dinov2-with-registers-base model. huggingface.co supports a free trial of the dinov2-with-registers-base model, and also provides paid use of the dinov2-with-registers-base. Support call dinov2-with-registers-base model through api, including Node.js, Python, http.
dinov2-with-registers-base huggingface.co is an online trial and call api platform, which integrates dinov2-with-registers-base's modeling effects, including api services, and provides a free online trial of dinov2-with-registers-base, you can try dinov2-with-registers-base online for free by clicking the link below.
facebook dinov2-with-registers-base online free url in huggingface.co:
dinov2-with-registers-base is an open source model from GitHub that offers a free installation service, and any user can find dinov2-with-registers-base on GitHub to install. At the same time, huggingface.co provides the effect of dinov2-with-registers-base install, users can directly use dinov2-with-registers-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
dinov2-with-registers-base install url in huggingface.co: