facebook / dinov2-small

huggingface.co
Total runs: 635.9K
24-hour runs: 0
7-day runs: 48.5K
30-day runs: 337.2K
Model's Last Updated: September 06 2023
image-feature-extraction

Introduction of dinov2-small

Model Details of dinov2-small

Vision Transformer (small-sized model) trained using DINOv2

Vision Transformer (ViT) model trained using the DINOv2 method. It was introduced in the paper DINOv2: Learning Robust Visual Features without Supervision by Oquab et al. and first released in this repository .

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.

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

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

635.9K
Total runs
0
24-hour runs
40.0K
3-day runs
48.5K
7-day runs
337.2K
30-day runs

More Information About dinov2-small huggingface.co Model

More dinov2-small license Visit here:

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

dinov2-small huggingface.co

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

dinov2-small huggingface.co Url

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

facebook dinov2-small online free

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

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

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

dinov2-small install

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

dinov2-small install url in huggingface.co:

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

Url of dinov2-small

dinov2-small huggingface.co Url

Provider of dinov2-small huggingface.co

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 15.4M
Run Growth: 6.1M
Growth Rate: 39.73%
Updated: January 17 2024
huggingface.co

Total runs: 6.3M
Run Growth: 1.4M
Growth Rate: 22.16%
Updated: September 15 2023
huggingface.co

Total runs: 5.4M
Run Growth: 5.0M
Growth Rate: 92.86%
Updated: March 23 2023
huggingface.co

Total runs: 2.6M
Run Growth: 304.5K
Growth Rate: 11.49%
Updated: November 17 2022
huggingface.co

Total runs: 2.2M
Run Growth: 2.0M
Growth Rate: 90.92%
Updated: November 14 2023
huggingface.co

Total runs: 1.2M
Run Growth: -23.4K
Growth Rate: -1.89%
Updated: February 29 2024
huggingface.co

Total runs: 1.0M
Run Growth: 419.8K
Growth Rate: 40.14%
Updated: September 06 2023
huggingface.co

Total runs: 805.8K
Run Growth: -153.6K
Growth Rate: -19.24%
Updated: December 28 2021
huggingface.co

Total runs: 773.3K
Run Growth: 515.3K
Growth Rate: 66.65%
Updated: January 25 2024
huggingface.co

Total runs: 740.9K
Run Growth: 186.0K
Growth Rate: 25.87%
Updated: January 12 2024
huggingface.co

Total runs: 650.1K
Run Growth: 497.6K
Growth Rate: 68.58%
Updated: June 15 2023
huggingface.co

Total runs: 638.0K
Run Growth: 539.7K
Growth Rate: 84.59%
Updated: November 16 2023
huggingface.co

Total runs: 560.7K
Run Growth: 100.3K
Growth Rate: 18.93%
Updated: September 01 2023
huggingface.co

Total runs: 353.9K
Run Growth: -34.3K
Growth Rate: -9.69%
Updated: January 20 2022
huggingface.co

Total runs: 352.9K
Run Growth: 176.2K
Growth Rate: 49.92%
Updated: September 15 2023
huggingface.co

Total runs: 341.0K
Run Growth: 225.8K
Growth Rate: 66.79%
Updated: January 12 2024
huggingface.co

Total runs: 234.6K
Run Growth: 142.8K
Growth Rate: 60.86%
Updated: September 06 2023
huggingface.co

Total runs: 226.8K
Run Growth: 67.1K
Growth Rate: 29.28%
Updated: May 22 2023
huggingface.co

Total runs: 222.7K
Run Growth: 88.3K
Growth Rate: 39.66%
Updated: June 03 2022
huggingface.co

Total runs: 181.8K
Run Growth: -54.0K
Growth Rate: -29.70%
Updated: September 05 2023
huggingface.co

Total runs: 143.7K
Run Growth: 54.8K
Growth Rate: 38.13%
Updated: September 15 2023
huggingface.co

Total runs: 108.3K
Run Growth: -5.1M
Growth Rate: -4749.39%
Updated: June 13 2023
huggingface.co

Total runs: 75.9K
Run Growth: -2.3K
Growth Rate: -44.21%
Updated: October 16 2024
huggingface.co

Total runs: 58.0K
Run Growth: 22.4K
Growth Rate: 38.69%
Updated: September 15 2023
huggingface.co

Total runs: 56.5K
Run Growth: 27.0K
Growth Rate: 56.88%
Updated: May 22 2023
huggingface.co

Total runs: 51.4K
Run Growth: -44.9K
Growth Rate: -88.02%
Updated: January 12 2024
huggingface.co

Total runs: 46.6K
Run Growth: 3.0K
Growth Rate: 6.42%
Updated: January 25 2023
huggingface.co

Total runs: 33.0K
Run Growth: 4.0K
Growth Rate: 12.12%
Updated: June 05 2023
huggingface.co

Total runs: 28.5K
Run Growth: 6.8K
Growth Rate: 23.74%
Updated: February 12 2023
huggingface.co

Total runs: 28.2K
Run Growth: 12.7K
Growth Rate: 45.10%
Updated: January 25 2023
huggingface.co

Total runs: 25.8K
Run Growth: -39.2K
Growth Rate: -157.99%
Updated: March 13 2024
huggingface.co

Total runs: 22.1K
Run Growth: 11.2K
Growth Rate: 50.76%
Updated: July 23 2024
huggingface.co

Total runs: 21.2K
Run Growth: -3.1K
Growth Rate: -15.51%
Updated: September 15 2023
huggingface.co

Total runs: 21.0K
Run Growth: -4.6K
Growth Rate: -20.53%
Updated: September 06 2023
huggingface.co

Total runs: 18.7K
Run Growth: -4.9K
Growth Rate: -26.01%
Updated: January 25 2023