Views
No views yet

pip install moozy.h5 files containing patch features extracted with lunit_vit_small_patch8_dino at 224x224 patch size. Compatible with AtlasPatch and TRIDENT outputs.moozy encode slide_1.h5 slide_2.h5 --output case_embedding.h5.svs, .tiff, .ndpi, .mrxs, etc.). MOOZY calls AtlasPatch under the hood to segment tissue, extract patches, and compute features. Requires atlas-patch, sam2, and the OpenSlide system library (see the AtlasPatch installation guide).moozy encode slide_1.svs slide_2.svs --output case_embedding.h5 --target_mag 201from moozy.encoding import run_encoding
2
3# From H5 feature files
4run_encoding(
5 slide_paths=["slide_1.h5", "slide_2.h5"],
6 output_path="case_embedding.h5",
7)
8
9# From raw slides
10run_encoding(
11 slide_paths=["slide_1.svs", "slide_2.svs"],
12 output_path="case_embedding.h5",
13 target_mag=20,
14)| Argument | Default | Description |
|---|---|---|
SLIDES | (required) | One or more H5 feature files or raw slide files forming a single case. Cannot mix the two types. |
--output, -o | (required) | Output H5 file path. |
--mixed_precision | off | Enable bfloat16 mixed precision. |
--target_mag | 20 | Magnification for patch extraction from raw slides. Ignored for H5. |
--step_size | 224 | Stride between patch centers in pixels. Set < 224 for overlap. Ignored for H5. |
--mpp_csv | - | CSV with wsi,mpp columns for microns-per-pixel overrides. Ignored for H5. |
features dataset (768-D float32 case embedding) and a coords dataset with slide metadata.| Component | Architecture | Params | Output dim |
|---|---|---|---|
| Patch encoder | ViT-S/8 (Lunit DINO) | 21.67M | 384 |
| Slide encoder | ViT, 6 layers, 768-D, 12 heads, 2D ALiBi | 42.8M | 768 |
| Case transformer | 3 layers, 12 heads | 21.3M | 768 |
tasks/ directory. Each task has a config.yaml (task type, organ, label mapping) and a task.csv (annotations and splits). MOOZY was trained on 333 of them (205 classification and 128 survival endpoints) across all 32 TCGA cohorts, all 10 CPTAC cohorts, REG, BC-Therapy, BRACS, CAMELYON17, DHMC Kidney, DHMC LUAD, EBRAINS, IMP Colorectum, IMP Cervix, MBC, MUT-HET-RCC, NADT Prostate, NAT-BRCA, and PANDA. The remaining 164 tasks are additional TCGA annotations (AJCC pathologic staging and molecular subtypes), and MOOZY was not trained on any of them.1@misc{kotp2026moozypatientfirstfoundationmodel,
2 title={MOOZY: A Patient-First Foundation Model for Computational Pathology},
3 author={Yousef Kotp and Vincent Quoc-Huy Trinh and Christopher Pal and Mahdi S. Hosseini},
4 year={2026},
5 eprint={2603.27048},
6 archivePrefix={arXiv},
7 primaryClass={cs.CV},
8 url={https://arxiv.org/abs/2603.27048},
9}