Views
No views yet
| Property | Value |
|---|---|
| Architecture | ViT-S/16 (vit_small_patch16_224 in timm) |
| Parameters | 21.7M |
| Feature dimension | 384 |
| Input size | 224 x 224 |
| Normalization | mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5) |
| Student initialization | kaiko ViT-S/16 (pathology-pretrained) |
| Teacher | UNI2-h (681M, ViT-H/14, CC BY-NC-ND 4.0) |
| Training data | 6,000 TCGA H&E whole-slide images, 32 cohorts |
| Training steps | 50,000 (batch size 256, approx. 24-29 GPU-hours on 1x RTX 4090) |
| Benchmark | DistillPath-KS16-UNI2h | kaiko baseline | UNI2-h teacher |
|---|---|---|---|
| EVA mean (7 tasks) | 0.772 | 0.764 | 0.806 |
| HEST mean (9 tasks) | 0.375 | 0.349 | 0.414 |
| PLISM score | 0.484 | 0.307 | 0.333 |
1import timm
2
3model = timm.create_model(
4 "hf_hub:RamonK/DistillPath-KS16-UNI2h",
5 pretrained=True,
6 num_classes=0,
7)
8model.eval()1import timm
2from huggingface_hub import hf_hub_download
3from safetensors.torch import load_file
4
5model = timm.create_model("vit_small_patch16_224", pretrained=False, num_classes=0)
6path = hf_hub_download("RamonK/DistillPath-KS16-UNI2h", "model.safetensors")
7state_dict = load_file(path)
8model.load_state_dict(state_dict, strict=True)
9model.eval()1from torchvision import transforms
2
3transform = transforms.Compose([
4 transforms.Resize(224),
5 transforms.CenterCrop(224),
6 transforms.ToTensor(),
7 transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]),
8])1@inproceedings{kaspar2026distillpath,
2 title = {DistillPath: An Efficient 22M Distilled Pathology Encoder Approaching Large Foundation Model Performance},
3 author = {Kaspar, Ramon and Ignatov, Andrey and Boeva, Valentina},
4 booktitle = {Medical Foundation Models and Benchmarks (MedFM-Bench), ECCV 2026},
5 year = {2026}
6}