facebook / dinov2-with-registers-small

huggingface.co
Total runs: 35.9K
24-hour runs: 0
7-day runs: 3.1K
30-day runs: 9.4K
Model's Last Updated: December 23 2024
image-feature-extraction

Introduction of dinov2-with-registers-small

Model Details of dinov2-with-registers-small

Vision Transformer (small-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-small')
model = AutoModel.from_pretrained('facebook/dinov2-with-registers-small')

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-small on huggingface.co

35.9K
Total runs
0
24-hour runs
174
3-day runs
3.1K
7-day runs
9.4K
30-day runs

More Information About dinov2-with-registers-small huggingface.co Model

More dinov2-with-registers-small license Visit here:

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

dinov2-with-registers-small huggingface.co

dinov2-with-registers-small huggingface.co is an AI model on huggingface.co that provides dinov2-with-registers-small's model effect (), which can be used instantly with this facebook dinov2-with-registers-small model. huggingface.co supports a free trial of the dinov2-with-registers-small model, and also provides paid use of the dinov2-with-registers-small. Support call dinov2-with-registers-small model through api, including Node.js, Python, http.

dinov2-with-registers-small huggingface.co Url

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

facebook dinov2-with-registers-small online free

dinov2-with-registers-small huggingface.co is an online trial and call api platform, which integrates dinov2-with-registers-small's modeling effects, including api services, and provides a free online trial of dinov2-with-registers-small, you can try dinov2-with-registers-small online for free by clicking the link below.

facebook dinov2-with-registers-small online free url in huggingface.co:

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

dinov2-with-registers-small install

dinov2-with-registers-small is an open source model from GitHub that offers a free installation service, and any user can find dinov2-with-registers-small on GitHub to install. At the same time, huggingface.co provides the effect of dinov2-with-registers-small install, users can directly use dinov2-with-registers-small installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

dinov2-with-registers-small install url in huggingface.co:

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

Url of dinov2-with-registers-small

dinov2-with-registers-small huggingface.co Url

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

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 8.2M
Run Growth: 94.8K
Growth Rate: 1.16%
Updated:January 20 2022
huggingface.co

Total runs: 5.8M
Run Growth: -1.6M
Growth Rate: -28.43%
Updated:September 15 2023
huggingface.co

Total runs: 3.1M
Run Growth: -157.4K
Growth Rate: -5.08%
Updated:January 17 2024
huggingface.co

Total runs: 2.8M
Run Growth: -352.4K
Growth Rate: -12.69%
Updated:September 06 2023
huggingface.co

Total runs: 2.1M
Run Growth: -633.4K
Growth Rate: -30.71%
Updated:December 28 2021
huggingface.co

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

Total runs: 1.5M
Run Growth: -698.1K
Growth Rate: -46.17%
Updated:March 23 2023
huggingface.co

Total runs: 1.1M
Run Growth: -1.1M
Growth Rate: -96.51%
Updated:January 25 2024
huggingface.co

Total runs: 889.4K
Run Growth: 58.2K
Growth Rate: 6.43%
Updated:September 06 2023
huggingface.co

Total runs: 535.2K
Run Growth: 68.8K
Growth Rate: 12.94%
Updated:May 22 2023
huggingface.co

Total runs: 528.0K
Run Growth: 98.0K
Growth Rate: 18.56%
Updated:March 17 2025
huggingface.co

Total runs: 372.4K
Run Growth: 255.7K
Growth Rate: 68.75%
Updated:June 13 2023
huggingface.co

Total runs: 361.0K
Run Growth: -103.6K
Growth Rate: -27.97%
Updated:February 29 2024
huggingface.co

Total runs: 348.8K
Run Growth: -24.2K
Growth Rate: -7.28%
Updated:January 12 2024
huggingface.co

Total runs: 283.8K
Run Growth: -4.8K
Growth Rate: -1.74%
Updated:June 15 2023
huggingface.co

Total runs: 268.8K
Run Growth: -25.1K
Growth Rate: -9.68%
Updated:January 12 2024
huggingface.co

Total runs: 248.1K
Run Growth: -41.9K
Growth Rate: -16.62%
Updated:November 17 2022
huggingface.co

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

Total runs: 228.8K
Run Growth: 43.2K
Growth Rate: 19.15%
Updated:February 12 2023
huggingface.co

Total runs: 188.1K
Run Growth: -132.3K
Growth Rate: -70.39%
Updated:September 06 2023
huggingface.co

Total runs: 175.2K
Run Growth: -136.3K
Growth Rate: -78.83%
Updated:September 15 2023
huggingface.co

Total runs: 149.1K
Run Growth: 29.7K
Growth Rate: 19.95%
Updated:June 03 2022
huggingface.co

Total runs: 122.1K
Run Growth: -19.3K
Growth Rate: -15.89%
Updated:November 16 2023
huggingface.co

Total runs: 110.3K
Run Growth: -80.9K
Growth Rate: -74.08%
Updated:May 22 2023
huggingface.co

Total runs: 97.0K
Run Growth: 45.6K
Growth Rate: 47.02%
Updated:March 28 2026
huggingface.co

Total runs: 95.0K
Run Growth: 48.1K
Growth Rate: 53.23%
Updated:December 09 2025
huggingface.co

Total runs: 82.4K
Run Growth: -122.0K
Growth Rate: -146.22%
Updated:July 25 2023
huggingface.co

Total runs: 67.4K
Run Growth: -31.0K
Growth Rate: -44.89%
Updated:September 15 2023
huggingface.co

Total runs: 57.6K
Run Growth: 46.7K
Growth Rate: 80.96%
Updated:March 27 2026
huggingface.co

Total runs: 56.7K
Run Growth: -101.6K
Growth Rate: -164.15%
Updated:September 01 2023
huggingface.co

Total runs: 54.2K
Run Growth: -130.1K
Growth Rate: -233.30%
Updated:September 06 2023
huggingface.co

Total runs: 48.1K
Run Growth: -44.7K
Growth Rate: -93.69%
Updated:February 12 2023
huggingface.co

Total runs: 41.7K
Run Growth: 26.9K
Growth Rate: 66.49%
Updated:October 16 2024
huggingface.co

Total runs: 40.7K
Run Growth: 1000
Growth Rate: 2.68%
Updated:June 13 2023
huggingface.co

Total runs: 39.8K
Run Growth: -3.9K
Growth Rate: -9.82%
Updated:September 05 2023
huggingface.co

Total runs: 38.5K
Run Growth: -7.9K
Growth Rate: -20.63%
Updated:January 21 2026
huggingface.co

Total runs: 37.6K
Run Growth: -11.3K
Growth Rate: -31.70%
Updated:March 13 2024
huggingface.co

Total runs: 35.5K
Run Growth: 15.1K
Growth Rate: 42.04%
Updated:February 23 2024