VitaminP (Model Weights)
This repository hosts the pretrained model weights for VitaminP, a vision transformerβassisted multimodal framework for pathology cell and nuclei segmentation.
π Full codebase & documentation:
https://github.com/idso-fa1-pathology/VitaminP
π¬ Model Description
VitaminP enables whole-cell and nuclei segmentation from H&E slides, without requiring immunofluorescence (MIF) at inference time.
The model is trained using paired H&EβMIF data and supports:
- H&E-only inference (standard pathology workflows)
- MIF-only inference
- Multimodal H&E + MIF inference (highest accuracy)
β οΈ Important Notice (Research Use Only)
β Intended for:
- Research and development
- Computational pathology studies
- Algorithm benchmarking
- Educational purposes
β NOT intended for:
- Clinical diagnosis
- Patient care
- Medical decision-making
This model is for research use only and is not approved for clinical use.
π§ Available Weights
| Model | Input | Description |
|---|---|---|
flex |
H&E / MIF / IHC | General-purpose model (recommended) |
dual |
H&E + MIF | Multimodal high-accuracy model |
syn |
H&E only | H&E-only whole-cell segmentation |
π Usage
Load the model using the Python package:
import vitaminp
model = vitaminp.load_model("flex", device="cuda")
For full inference pipelines (WSI, Docker, CLI), see the GitHub repo: https://github.com/idso-fa1-pathology/VitaminP
π¦ Installation
pip install vitaminp
π Outputs
- Cell and nuclei segmentation masks
- GeoJSON annotations (QuPath-compatible)
- Visualization overlays
π Training Data
The model was trained on multiple public datasets:
- 14 datasets
- 34 cancer types
- 7M+ annotated cells
Includes paired H&E and multiplex immunofluorescence (MIF) data.
βοΈ Limitations
- Performance varies across staining protocols and scanners
- Requires correct image resolution (MPP)
- Not validated for clinical deployment
- GPU recommended for large-scale inference
π§ Ethical Considerations
- May reflect dataset biases
- Not suitable for clinical use
- Should be validated before research use in new domains
π Citation
@article{shokrollahi2025vitaminp,
title = {Vitamin-P: vision transformer assisted multi-modality integration network for pathology cell segmentation},
author = {Shokrollahi, Yasin and others},
year = {2025}
}
π Links
GitHub (code & full docs):
https://github.com/idso-fa1-pathology/VitaminPVitaminPScope viewer:
https://github.com/idso-fa1-pathology/VitaminPScope
π License
MIT License