Downloads · 30 days
6
9% of all-time downloads
hassonofer/vit_reg1_s14_ls_dino-v2-dist-bio
vit_reg1_s14_ls_dino-v2-dist-bio is a image feature extraction model from hassonofer. 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 timm. The card lists the license as apache-2.0.
A TIMM-compatible conversion of the Bio-DINO S/14 distilled image encoder from the Birder project.
Downloads · 30 days
6
9% of all-time downloads
All-time downloads
69
Public
Repo size
86.7 MB
Likes
1
Public
Click a slice to open those files.
.bin86.7 MB · 100%
From the Hugging Face model README
A TIMM-compatible conversion of the Bio-DINO S/14 distilled image encoder from the Birder project.
The original Birder-format release is available at:
from PIL import Image
import torch
import timm
from timm.data import create_transform
from timm.data import resolve_model_data_config
model = timm.create_model("hf-hub:hassonofer/vit_reg1_s14_ls_dino-v2-dist-bio", pretrained=True)
model.eval()
data_config = resolve_model_data_config(model)
transform = create_transform(**data_config, is_training=False)
image = Image.open("path/to/image.jpg").convert("RGB")
x = transform(image).unsqueeze(0)
with torch.inference_mode():
embedding = model(x)
print(embedding.shape) # torch.Size([1, 896])
This repository is only the TIMM-compatible checkpoint.
Please cite or link the original Birder release when using this TIMM conversion.