facebook / dinov2-with-registers-base

huggingface.co
Total runs: 174.5K
24-hour runs: -1.1K
7-day runs: -40.9K
30-day runs: 11.0K
Model's Last Updated: December 23 2024
image-feature-extraction

Introduction of dinov2-with-registers-base

Model Details of dinov2-with-registers-base

Vision Transformer (base-sized model) trained using DINOv2, with registers

Vision Transformer (ViT) model introduced in the paper Vision Transformers Need Registers by Darcet et al. and first released in this repository .

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.

drawing

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.

How to use

Here is how to use this model:

from transformers import AutoImageProcessor, AutoModel
from PIL import Image
import requests

url = 'http://images.cocodataset.org/val2017/000000039769.jpg'
image = Image.open(requests.get(url, stream=True).raw)

processor = AutoImageProcessor.from_pretrained('facebook/dinov2-with-registers-base')
model = AutoModel.from_pretrained('facebook/dinov2-with-registers-base')

inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
BibTeX entry and citation info
@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:

https://choosealicense.com/licenses/apache-2.0

dinov2-with-registers-base huggingface.co

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 Url

https://huggingface.co/facebook/dinov2-with-registers-base

facebook dinov2-with-registers-base online free

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:

https://huggingface.co/facebook/dinov2-with-registers-base

dinov2-with-registers-base install

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:

https://huggingface.co/facebook/dinov2-with-registers-base

Url of dinov2-with-registers-base

dinov2-with-registers-base huggingface.co Url

Provider of dinov2-with-registers-base huggingface.co

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 8.0M
Run Growth: 18.9K
Growth Rate: 0.24%
Updated:January 20 2022
huggingface.co

Total runs: 8.0M
Run Growth: -9.0M
Growth Rate: -113.24%
Updated:September 15 2023
huggingface.co

Total runs: 3.7M
Run Growth: -956.9K
Growth Rate: -25.81%
Updated:September 06 2023
huggingface.co

Total runs: 3.2M
Run Growth: 881.3K
Growth Rate: 27.28%
Updated:January 17 2024
huggingface.co

Total runs: 2.7M
Run Growth: -596.8K
Growth Rate: -21.95%
Updated:December 28 2021
huggingface.co

Total runs: 2.2M
Run Growth: 468.2K
Growth Rate: 20.84%
Updated:January 25 2024
huggingface.co

Total runs: 2.3M
Run Growth: 210.2K
Growth Rate: 9.50%
Updated:March 23 2023
huggingface.co

Total runs: 1.9M
Run Growth: -434.9K
Growth Rate: -23.25%
Updated:November 21 2025
huggingface.co

Total runs: 738.2K
Run Growth: -184.9K
Growth Rate: -25.05%
Updated:September 06 2023
huggingface.co

Total runs: 475.3K
Run Growth: -142.4K
Growth Rate: -29.96%
Updated:May 22 2023
huggingface.co

Total runs: 442.3K
Run Growth: 75.0K
Growth Rate: 16.95%
Updated:February 29 2024
huggingface.co

Total runs: 429.4K
Run Growth: -69.0K
Growth Rate: -16.06%
Updated:March 17 2025
huggingface.co

Total runs: 383.6K
Run Growth: -206.1K
Growth Rate: -53.73%
Updated:January 12 2024
huggingface.co

Total runs: 330.5K
Run Growth: -73.3K
Growth Rate: -22.19%
Updated:January 12 2024
huggingface.co

Total runs: 308.7K
Run Growth: 32.9K
Growth Rate: 10.65%
Updated:September 15 2023
huggingface.co

Total runs: 307.7K
Run Growth: -64.5K
Growth Rate: -20.98%
Updated:September 06 2023
huggingface.co

Total runs: 281.7K
Run Growth: -37.1K
Growth Rate: -13.19%
Updated:November 17 2022
huggingface.co

Total runs: 280.9K
Run Growth: 53.5K
Growth Rate: 19.03%
Updated:June 15 2023
huggingface.co

Total runs: 260.0K
Run Growth: 165.2K
Growth Rate: 63.55%
Updated:May 22 2023
huggingface.co

Total runs: 236.9K
Run Growth: 14.3K
Growth Rate: 6.02%
Updated:July 23 2024
huggingface.co

Total runs: 210.0K
Run Growth: -148.8K
Growth Rate: -70.85%
Updated:July 25 2023
huggingface.co

Total runs: 187.6K
Run Growth: 78.9K
Growth Rate: 42.04%
Updated:February 12 2023
huggingface.co

Total runs: 176.4K
Run Growth: 74.8K
Growth Rate: 42.42%
Updated:September 06 2023
huggingface.co

Total runs: 169.5K
Run Growth: -207.4K
Growth Rate: -122.30%
Updated:November 17 2023
huggingface.co

Total runs: 162.8K
Run Growth: -984
Growth Rate: -0.60%
Updated:September 01 2023
huggingface.co

Total runs: 147.1K
Run Growth: 107.3K
Growth Rate: 72.91%
Updated:November 16 2023
huggingface.co

Total runs: 120.4K
Run Growth: -6.4K
Growth Rate: -5.35%
Updated:June 03 2022
huggingface.co

Total runs: 109.8K
Run Growth: 26.5K
Growth Rate: 24.14%
Updated:November 20 2023
huggingface.co

Total runs: 109.5K
Run Growth: 26.2K
Growth Rate: 23.95%
Updated:January 25 2023
huggingface.co

Total runs: 107.8K
Run Growth: -10.3K
Growth Rate: -9.51%
Updated:September 15 2023
huggingface.co

Total runs: 104.7K
Run Growth: -12.9K
Growth Rate: -12.29%
Updated:June 13 2023
huggingface.co

Total runs: 100.3K
Run Growth: -207.3K
Growth Rate: -206.66%
Updated:June 13 2023
huggingface.co

Total runs: 86.7K
Run Growth: 60.8K
Growth Rate: 70.16%
Updated:February 12 2023
huggingface.co

Total runs: 61.6K
Run Growth: -17.6K
Growth Rate: -28.52%
Updated:March 28 2026
huggingface.co

Total runs: 59.2K
Run Growth: 16.8K
Growth Rate: 28.34%
Updated:January 25 2023
huggingface.co

Total runs: 50.1K
Run Growth: -19.8K
Growth Rate: -39.48%
Updated:January 29 2026