You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

These model weights and files are released under the CC-BY-NC-ND 4.0 license and may only be used for non-commercial, academic research with proper attribution. They do not include the UNI2-h or DINOv2 backbone weights; obtain UNI2-h separately from MahmoodLab under their terms. The primary email of your Hugging Face account must match your institutional email. Requests from personal emails (e.g. @gmail, @hotmail) will be denied.

Log in or Sign Up to review the conditions and access this model content.

DUET

Reliable tumor segmentation in digital pathology demands not only high pixel-wise accuracy on target tissue, but also rigorous detection of out-of-distribution (OOD) failure modes. This repository provides tumor segmentation models for whole-slide images of oral squamous cell carcinoma (OSCC) with three encoders: an ImageNet-pretrained ResNet34, the general-purpose foundation model DINOv2 ViT-L, and the pathology foundation model UNI2-h.

For OOD detection, the training distribution is characterized in each segmentation encoder's embedding space with a Gaussian Mixture Model (GMM), and each patch is scored by its negative log-likelihood (NLL) under it.

What's in this repository

File Model Contents
cnn-seg.pt CNN-Seg (ResNet34-UNet) Full model weights
uni2h-seg.pt UNI2H-Seg (UNI2-h + ViT-Adapter) ViT-Adapter and decoder weights
vitl-seg.pt ViTL-Seg (DINOv2 ViT-L + ViT-Adapter) ViT-Adapter and decoder weights
ood/<model>/ Out-of-distribution detection, one folder per model pca.joblib, gmm_K8.joblib, thresholds.json

Backbone weights are not included. UNI2H-Seg needs the UNI2-h weights from MahmoodLab (https://huggingface.co/MahmoodLab/UNI2-h). Access is gated: request it there and agree to their terms (CC-BY-NC-ND 4.0, non-commercial academic research only). ViTL-Seg needs DINOv2 ViT-L (https://huggingface.co/timm/vit_large_patch14_dinov2.lvd142m), which is openly available.

How to use

  1. Request access to this repository, and to UNI2-h (https://huggingface.co/MahmoodLab/UNI2-h) if you intend to use UNI2H-Seg.
  2. Follow the instructions in the GitHub repository:

License

The weights and files in this repository are released under CC-BY-NC-ND 4.0 (non-commercial use only, no distribution of modified versions, attribution required).

UNI2 is licensed separately by MahmoodLab under CC-BY-NC-ND 4.0 with additional terms. Users must follow MahmoodLab's terms for the UNI2 weights.

Citation

If you use these weights, please cite our work:

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support