facebook / dino-vitb16

huggingface.co
Total runs: 247.2K
24-hour runs: 0
7-day runs: -10.0K
30-day runs: -27.5K
Model's Last Updated: May 22 2023
image-feature-extraction

Introduction of dino-vitb16

Model Details of dino-vitb16

Vision Transformer (base-sized model, patch size 16) trained using DINO

Vision Transformer (ViT) model trained using the DINO method. It was introduced in the paper Emerging Properties in Self-Supervised Vision Transformers by Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, Armand Joulin and first released in this repository .

Disclaimer: The team releasing DINO 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, namely ImageNet-1k, at a resolution of 224x224 pixels.

Images are presented to the model as a sequence of fixed-size patches (resolution 16x16), 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 image classification. 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 ViTImageProcessor, ViTModel
from PIL import Image
import requests

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

processor = ViTImageProcessor.from_pretrained('facebook/dino-vitb16')
model = ViTModel.from_pretrained('facebook/dino-vitb16')

inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
BibTeX entry and citation info
@article{DBLP:journals/corr/abs-2104-14294,
  author    = {Mathilde Caron and
               Hugo Touvron and
               Ishan Misra and
               Herv{\'{e}} J{\'{e}}gou and
               Julien Mairal and
               Piotr Bojanowski and
               Armand Joulin},
  title     = {Emerging Properties in Self-Supervised Vision Transformers},
  journal   = {CoRR},
  volume    = {abs/2104.14294},
  year      = {2021},
  url       = {https://arxiv.org/abs/2104.14294},
  archivePrefix = {arXiv},
  eprint    = {2104.14294},
  timestamp = {Tue, 04 May 2021 15:12:43 +0200},
  biburl    = {https://dblp.org/rec/journals/corr/abs-2104-14294.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}

Runs of facebook dino-vitb16 on huggingface.co

247.2K
Total runs
0
24-hour runs
9.2K
3-day runs
-10.0K
7-day runs
-27.5K
30-day runs

More Information About dino-vitb16 huggingface.co Model

More dino-vitb16 license Visit here:

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

dino-vitb16 huggingface.co

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

dino-vitb16 huggingface.co Url

https://huggingface.co/facebook/dino-vitb16

facebook dino-vitb16 online free

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

facebook dino-vitb16 online free url in huggingface.co:

https://huggingface.co/facebook/dino-vitb16

dino-vitb16 install

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

dino-vitb16 install url in huggingface.co:

https://huggingface.co/facebook/dino-vitb16

Url of dino-vitb16

dino-vitb16 huggingface.co Url

Provider of dino-vitb16 huggingface.co

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 8.2M
Run Growth: 4.4M
Growth Rate: 49.40%
Updated: January 17 2024
huggingface.co

Total runs: 6.3M
Run Growth: -970.9K
Growth Rate: -16.12%
Updated: September 15 2023
huggingface.co

Total runs: 3.1M
Run Growth: -357.0K
Growth Rate: -11.88%
Updated: November 17 2022
huggingface.co

Total runs: 2.0M
Run Growth: 1.9M
Growth Rate: 99.94%
Updated: June 13 2023
huggingface.co

Total runs: 1.3M
Run Growth: 12.4K
Growth Rate: 0.94%
Updated: February 29 2024
huggingface.co

Total runs: 1.1M
Run Growth: -1.1M
Growth Rate: -103.67%
Updated: March 23 2023
huggingface.co

Total runs: 806.6K
Run Growth: 139.7K
Growth Rate: 17.08%
Updated: January 12 2024
huggingface.co

Total runs: 618.6K
Run Growth: -145.5K
Growth Rate: -22.93%
Updated: January 20 2022
huggingface.co

Total runs: 591.9K
Run Growth: 62.7K
Growth Rate: 10.25%
Updated: September 06 2023
huggingface.co

Total runs: 307.9K
Run Growth: 155.7K
Growth Rate: 51.95%
Updated: January 25 2024
huggingface.co

Total runs: 278.5K
Run Growth: 50.5K
Growth Rate: 18.58%
Updated: September 15 2023
huggingface.co

Total runs: 265.5K
Run Growth: 104.6K
Growth Rate: 40.73%
Updated: September 05 2023
huggingface.co

Total runs: 249.7K
Run Growth: -18.4M
Growth Rate: -7339.74%
Updated: September 15 2023
huggingface.co

Total runs: 233.3K
Run Growth: -1.2M
Growth Rate: -500.46%
Updated: September 06 2023
huggingface.co

Total runs: 229.2K
Run Growth: -248.3K
Growth Rate: -109.15%
Updated: January 12 2024
huggingface.co

Total runs: 225.4K
Run Growth: -146.3K
Growth Rate: -62.61%
Updated: January 12 2024
huggingface.co

Total runs: 184.2K
Run Growth: 166.7K
Growth Rate: 90.52%
Updated: November 20 2023
huggingface.co

Total runs: 160.7K
Run Growth: 17.7K
Growth Rate: 10.78%
Updated: January 25 2023
huggingface.co

Total runs: 146.1K
Run Growth: 21.3K
Growth Rate: 14.74%
Updated: June 03 2022
huggingface.co

Total runs: 136.1K
Run Growth: -507.0K
Growth Rate: -395.61%
Updated: June 15 2023
huggingface.co

Total runs: 113.1K
Run Growth: 75.8K
Growth Rate: 67.15%
Updated: March 13 2024
huggingface.co

Total runs: 103.1K
Run Growth: -1.6K
Growth Rate: -1.54%
Updated: November 16 2023
huggingface.co

Total runs: 92.6K
Run Growth: 23.7K
Growth Rate: 25.29%
Updated: May 22 2023
huggingface.co

Total runs: 79.3K
Run Growth: -87.1K
Growth Rate: -110.86%
Updated: September 06 2023
huggingface.co

Total runs: 60.0K
Run Growth: 38.4K
Growth Rate: 99.21%
Updated: September 01 2023
huggingface.co

Total runs: 43.6K
Run Growth: 27.1K
Growth Rate: 62.12%
Updated: January 25 2023
huggingface.co

Total runs: 40.6K
Run Growth: 10.7K
Growth Rate: 26.47%
Updated: September 15 2023
huggingface.co

Total runs: 30.7K
Run Growth: 9.3K
Growth Rate: 30.48%
Updated: November 20 2023
huggingface.co

Total runs: 30.7K
Run Growth: 10.3K
Growth Rate: 33.29%
Updated: January 25 2023
huggingface.co

Total runs: 29.1K
Run Growth: -158.9K
Growth Rate: -447.40%
Updated: June 14 2023
huggingface.co

Total runs: 28.3K
Run Growth: -226.9K
Growth Rate: -815.63%
Updated: June 05 2023
huggingface.co

Total runs: 27.0K
Run Growth: 9.1K
Growth Rate: 33.44%
Updated: March 17 2023
huggingface.co

Total runs: 26.9K
Run Growth: 9.4K
Growth Rate: 34.31%
Updated: February 12 2023
huggingface.co

Total runs: 26.5K
Run Growth: -340
Growth Rate: -1.31%
Updated: November 14 2023
huggingface.co

Total runs: 25.5K
Run Growth: -9.8K
Growth Rate: -45.96%
Updated: September 06 2023
huggingface.co

Total runs: 23.4K
Run Growth: -4.8K
Growth Rate: -20.44%
Updated: September 15 2023
huggingface.co

Total runs: 21.1K
Run Growth: 12.5K
Growth Rate: 47.75%
Updated: February 29 2024
huggingface.co

Total runs: 19.8K
Run Growth: 17.3K
Growth Rate: 86.94%
Updated: January 18 2023