alt.freeweights.vision / dinov2-with-registers-large-imagenet1k-1-layer
From: facebook <huggingface.co/facebook>Newsgroups: alt.freeweights.visionSubject:

dinov2-with-registers-large-imagenet1k-1-layer

Date: 2026-11-15Commit: e56c4ceSigned: 2DC28CC7B26A283B ✓

Image classification model with 306M parameters. Safetensors weights, 1.23 GB in all. Published by facebook under Apache-2.0.

306M params1.23GBdinov2-with-registers-large-imagenet1k-1-layersafetensorspermissive
FactsParams306MSize1.23 GBFormatssafetensorsTaskimage classificationLicenseApache-2.0From sourcepermissive
$ fw get facebook/dinov2-with-registers-large-imagenet1k-1-layer
# manifest sha256 1a79ac2de897… · 1.23 GB · 5 files
$ fw verify ./dinov2-with-registers-large-imagenet1k-1-layer facebook/dinov2-with-registers-large-imagenet1k-1-layer
From sourceHosted (signed)facebook/dinov2-with-registers-large-imagenet1k-1-layerLast check: 2026-11-15 04:15 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
1.23 GB
Weights
1.23 GB (safetensors)
Parameters
306M
Formats
safetensors
Task
image classification
License
Apache-2.0 (permissive)
Files
5, each with a sha256
Publisher
facebook
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 04:15 UTCpassed

Model card

From the publisher at commit e56c4ce. Shown as plain text with links; images open at the publisher.

Vision Transformer (large-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.

Image: 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 to classify an image into one of the 1000 possible ImageNet classes. 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, AutoModelForImageClassification
import torch
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-large-imagenet1k-1-layer')
model = AutoModelForImageClassification.from_pretrained('facebook/dinov2-with-registers-large-imagenet1k-1-layer')

inputs = processor(images=image, return_tensors="pt")

with torch.no_grad():
  outputs = model(**inputs)
  logits = outputs.logits

class_idx = outputs.logits.argmax(-1).item()
print("Predicted class:", model.config.id2label[class_idx])
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}, 
}

Files

5 files · 1.23 GBWeights 1.23 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 5 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md3.82 KBa5b3cb0e39d5104a95f07fe18a67f45a4fbb39e586b75b2e1b7f664b12fc1f6a
config.json58.4 KB246a145961559b741c418fb61d183b9666a5cb0cfd16e9a6a410b32d39a9cafa
model.safetensors1.23 GBffc75516c534d87881977098ce353c2b0044f6091effc34d4c9e69c59976a5b8
preprocessor_config.json436 B14e780d86fa1861f8751f868d7f45425b5feb55c38ca26f152ca5097ab30f828
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
e56c4cec02 pinned now2026-11-15 04:15 UTC5 files · 1.23 GB

Use it

$ fw get facebook/dinov2-with-registers-large-imagenet1k-1-layer
# manifest sha256 1a79ac2de897… · 1.23 GB · 5 files
$ fw verify ./dinov2-with-registers-large-imagenet1k-1-layer facebook/dinov2-with-registers-large-imagenet1k-1-layer
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/facebook/dinov2-with-registers-large-imagenet1k-1-layer.json --dir ./dinov2-with-registers-large-imagenet1k-1-layer $ python3 fw.py verify ./dinov2-with-registers-large-imagenet1k-1-layer ./facebook__dinov2-with-registers-large-imagenet1k-1-layer.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download facebook/dinov2-with-registers-large-imagenet1k-1-layer --revision e56c4cec02f090578d7da03bd014d5c58b591380 --local-dir ./dinov2-with-registers-large-imagenet1k-1-layer

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
a5b3cb0e39d5104a95f07fe18a67f45a4fbb39e586b75b2e1b7f664b12fc1f6a
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: facebook <huggingface.co/facebook>Newsgroups: alt.freeweights.visionSubject: dinov2-with-registers-large-imagenet1k-1-layerDate: 2026-11-15Commit: e56c4ceSigned: 2DC28CC7B26A283B ✓
Upstream
facebook/dinov2-with-registers-large-imagenet1k-1-layer
Pinned commit
e56c4cec02f090578d7da03bd014d5c58b591380
Manifest
dinov2-with-registers-large-imagenet1k-1-layer.json · .minisig
Manifest sha256
1a79ac2de897e8612041f5b61fc5beb9b34349a7484099548ce70a97ad8ac0c2
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:15 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/facebook/dinov2-with-registers-large-imagenet1k-1-layer.json $ curl -O https://freeweights.allternit.com/manifests/facebook/dinov2-with-registers-large-imagenet1k-1-layer.json.minisig $ minisign -Vm dinov2-with-registers-large-imagenet1k-1-layer.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download facebook/dinov2-with-registers-large-imagenet1k-1-layer
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. dinov2-with-registers-large-imagenet1k-1-layer.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX