Downloads · 30 days
332
9% of all-time downloads
1aurent/resnet50.lunit_bt
resnet50.lunit_bt is a image classification model from 1aurent. Use it when you need a label for an image. It is set up for timm. The card lists the license as other.
A ResNet50 image classification model. \ Trained on 33M histology patches from various pathology datasets.
Downloads · 30 days
332
9% of all-time downloads
All-time downloads
3.6K
Public
Parameters
23.6M
94.3 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors94.3 MB · 100%
From the Hugging Face model README
A ResNet50 image classification model.
Trained on 33M histology patches from various pathology datasets.

from urllib.request import urlopen
from PIL import Image
import timm
# get example histology image
img = Image.open(
urlopen(
"https://github.com/owkin/HistoSSLscaling/raw/main/assets/example.tif"
)
)
# load model from the hub
model = timm.create_model(
model_name="hf-hub:1aurent/resnet50.lunit_bt",
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)
output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
@inproceedings{kang2022benchmarking,
author = {Kang, Mingu and Song, Heon and Park, Seonwook and Yoo, Donggeun and Pereira, Sérgio},
title = {Benchmarking Self-Supervised Learning on Diverse Pathology Datasets},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2023},
pages = {3344-3354}
}