MedMLX — Segment. LIVER CT / NN U-NET

nnU-Net · Liver & Tumor

Segment liver and tumor labels from 3D CT with nnU-Net, locally on Apple Silicon.

GitHub · Files · Docs

Input Output
3D CT · NIfTI Liver and tumor segmentation

Apple Silicon · Metal · Python 3.13 / 3.14

Quick start

uv venv --python 3.13
source .venv/bin/activate

uv pip install "nnunet-mlx==0.5.1"
uv tool install huggingface-hub

hf download MedMLX/nnunet-liver-mlx --local-dir models

Replace the example input paths with your own files.

from nnunet_mlx.medmlx import run

result = run(
    model_dir='models',
    image_paths=['image.nii.gz'],
    output_dir='outputs',
    folds=[0],
    use_mirroring=False,
    step_fraction=0.5,
)
print(result["outputs"])

Use & license

For research and education. Not validated for clinical use.

Weights: CC-BY-4.0. Notices.

Downloads last month

-

Downloads are not tracked for this model. How to track
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support