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_small_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
Citation
@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}
}
Runs of 1aurent vit_small_patch14_224.dinobloom on huggingface.co
1.7K
Total runs
110
24-hour runs
219
3-day runs
493
7-day runs
1.4K
30-day runs
More Information About vit_small_patch14_224.dinobloom huggingface.co Model
More vit_small_patch14_224.dinobloom license Visit here:
vit_small_patch14_224.dinobloom huggingface.co is an AI model on huggingface.co that provides vit_small_patch14_224.dinobloom's model effect (), which can be used instantly with this 1aurent vit_small_patch14_224.dinobloom model. huggingface.co supports a free trial of the vit_small_patch14_224.dinobloom model, and also provides paid use of the vit_small_patch14_224.dinobloom. Support call vit_small_patch14_224.dinobloom model through api, including Node.js, Python, http.
vit_small_patch14_224.dinobloom huggingface.co is an online trial and call api platform, which integrates vit_small_patch14_224.dinobloom's modeling effects, including api services, and provides a free online trial of vit_small_patch14_224.dinobloom, you can try vit_small_patch14_224.dinobloom online for free by clicking the link below.
1aurent vit_small_patch14_224.dinobloom online free url in huggingface.co:
vit_small_patch14_224.dinobloom is an open source model from GitHub that offers a free installation service, and any user can find vit_small_patch14_224.dinobloom on GitHub to install. At the same time, huggingface.co provides the effect of vit_small_patch14_224.dinobloom install, users can directly use vit_small_patch14_224.dinobloom installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
vit_small_patch14_224.dinobloom install url in huggingface.co: