Downloads · 30 days
457
7% of all-time downloads
1aurent/vit_base_patch14_224.dinobloom
vit_base_patch14_224.dinobloom is a feature extraction model from 1aurent. Use it when you need embeddings to search or compare text. It is set up for timm. The card lists the license as apache-2.0.
Downloads · 30 days
457
7% of all-time downloads
All-time downloads
6.6K
Public
Parameters
85.7M
343 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors343 MB · 100%
From the Hugging Face model README

from urllib.request import urlopen
from PIL import Image
import timm
# get example histology image
img = Image.open(
urlopen(
"https://raw.githubusercontent.com/zxaoyou/segmentation_WBC/master/Dataset%201/001.bmp"
)
)
# load model from the hub
model = timm.create_model(
model_name="hf-hub:1aurent/vit_base_patch14_224.dinobloom",
pretrained=True,
).eval()
# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)
data = transforms(img).unsqueeze(0) # input is a (batch_size, num_channels, img_size, img_size) shaped tensor
output = model(data) # output is a (batch_size, num_features) shaped tensor
@misc{koch2024dinobloom,
title = {DinoBloom: A Foundation Model for Generalizable Cell Embeddings in Hematology},
author = {Valentin Koch and Sophia J. Wagner and Salome Kazeminia and Ece Sancar and Matthias Hehr and Julia Schnabel and Tingying Peng and Carsten Marr},
year = {2024},
eprint = {2404.05022},
archivePrefix = {arXiv},
primaryClass = {cs.CV}
}