Downloads · 30 days
0
HanyueShen/mhist-vote-count-deit-s16
mhist-vote-count-deit-s16 is a image classification model from HanyueShen. Use it when you need a label for an image. It is set up for timm. The card lists the license as apache-2.0.
This public repository documents the model evaluated in Pathologist Vote-Count Regression with a Rotation-Consistent Transformer for MHIST by Hanyue Shen and Xinling Liao (equal contribution), YH Intelligence Technolo…
Downloads · 30 days
0
Access
Public
Updated Aug 30, 2026
Repo size
—
Likes
1
Public
Click a slice to open those files.
Other13.6 KB · 53%
From the Hugging Face model README
This public repository documents the model evaluated in Pathologist Vote-Count Regression with a Rotation-Consistent Transformer for MHIST by Hanyue Shen and Xinling Liao (equal contribution), YH Intelligence Technology. It provides the architecture, inference interface, configuration, aggregate metrics, and citation material.
Correspondence: [email protected], [email protected].
No trained weights are included in this public repository. The five checkpoints are retained in a separate private repository pending specific written permission from the MHIST data publisher for public redistribution of trained weights. The MHIST Research Use Agreement restricts redistribution and derivative works. See USE_RESTRICTIONS.md.
deit_small_patch16_224), initialized from ImageNet-1K weights.(0, 7).The study reports a five-seed result, not one uniquely selected final checkpoint. No checkpoint is designated as universally best.
| Checkpoint | Seed | Single-view AUROC | Four-view AUROC | Four-view accuracy |
|---|---|---|---|---|
| Seed 42 | 42 | 0.95397 | 0.96049 | 90.48% |
| Seed 43 | 43 | 0.95655 | 0.95965 | 90.99% |
| Seed 44 | 44 | 0.95444 | 0.95705 | 89.36% |
| Seed 45 | 45 | 0.95501 | 0.95922 | 90.28% |
| Seed 46 | 46 | 0.95225 | 0.95759 | 89.66% |
Across the five seeds, four-view inference achieved 0.9588 +/- 0.0014 AUROC and 90.15 +/- 0.65% accuracy (mean +/- sample standard deviation) on the released 977-image fixed test partition. These aggregate values describe the five-checkpoint set and must not be attributed to an individual checkpoint.
The five-seed mean AUROC of 0.9588 is the highest documented mean among the identified studies explicitly reporting AUROC on the released slide-separated 2,175/977 partition. This is the state-of-the-art result under that fixed MHIST evaluation protocol. Comparisons are restricted to that protocol; cross-validation and frozen-encoder probing results are separate.
modeling_mhist.py is inference-only. It defines the architecture, loads a compatible locally held safetensors checkpoint, applies the evaluation preprocessing, and returns the predicted vote count, normalized SSA score, and HP/SSA label. The example below assumes an authorized checkpoint is available locally; this public repository does not provide one.
from modeling_mhist import load_model, predict
model = load_model("checkpoints/seed_42.safetensors", device="cpu")
result = predict(model, "patch.png", four_view=True, device="cpu")
print(result)
The input image must already be a 224 x 224 RGB patch. The loader does not download or contain MHIST data.
This is an experimental research model for non-clinical histopathology research. It is not a medical device and must not be used for diagnosis, patient care, or clinical decision-making. Evaluation is limited to HP/SSA classification on the released MHIST fixed split. Performance on other laboratories, scanners, stains, organs, or populations is not established.
This repository does not contain model weights, training code, training commands, training histories, optimizer or scheduler state, MHIST images, annotations, labels, vote-count records, data splits, per-image predictions, or internal paths.
MHIST is not redistributed here. Each researcher must obtain the dataset directly from the official MHIST page and agree to its Research Use Agreement. No rights to MHIST are granted by this repository.
The authored inference code and repository documentation are released under Apache License 2.0; see LICENSE. MHIST data and MHIST-trained weights are not included and are not licensed by this repository. The architecture uses the Apache-2.0-licensed DeiT and timm implementations; see NOTICE.
See CITATION.bib for the associated manuscript and MHIST dataset citations.