Downloads · 30 days
12
1% of all-time downloads
SakikoTogawa/dinov2-small-droid
dinov2-small-droid is a image feature extraction model from SakikoTogawa. Use it for the image feature extraction task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
This is a DINOv2-small vision backbone adapted on robot-manipulation images from the DROID dataset. It starts from facebook/dinov2-small and preserves the standard Hugging Face Transformers DINOv2 architecture.
Downloads · 30 days
12
1% of all-time downloads
All-time downloads
2.1K
Public
Parameters
22.1M
88.2 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors88.2 MB · 100%
From the Hugging Face model README
This is a DINOv2-small vision backbone adapted on robot-manipulation images
from the DROID dataset. It starts from
facebook/dinov2-small and preserves the standard
Hugging Face Transformers DINOv2 architecture.
teacher backbone51814384from PIL import Image
import torch
from transformers import AutoImageProcessor, AutoModel
model_id = "SakikoTogawa/dinov2-small-droid"
processor = AutoImageProcessor.from_pretrained(model_id)
model = AutoModel.from_pretrained(model_id).eval()
image = Image.open("example.jpg").convert("RGB")
inputs = processor(images=image, return_tensors="pt")
with torch.inference_mode():
outputs = model(**inputs)
cls_feature = outputs.last_hidden_state[:, 0] # [batch, 384]
patch_features = outputs.last_hidden_state[:, 1:]
For cosine similarity or nearest-neighbor retrieval:
cls_feature = torch.nn.functional.normalize(cls_feature, dim=-1)
The model is intended as an image-feature backbone for downstream robotics
experiments such as frozen-feature evaluation, linear probing, retrieval, or
further fine-tuning. The adaptation objective is self-supervised and does not
guarantee improvement on every downstream task. Compare against the original
facebook/dinov2-small using an episode-disjoint evaluation split.
DROID contains diverse robot-manipulation trajectories collected across multiple scenes and tasks. Consult the DROID project page for dataset details and terms.