Image Segmentation
MLX
English
native-mlx
apple-silicon
medical-imaging
ct
kidney
segmentation
research
Instructions to use MedMLX/segresnet-renal-cect-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use MedMLX/segresnet-renal-cect-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download MedMLX/segresnet-renal-cect-mlx --local-dir segresnet-renal-cect-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
SegResNet · Renal CECT
Segment renal structures from three-phase contrast-enhanced CT with native MLX.
| Input | Output |
|---|---|
| Arterial, venous + excretory CT | Five renal structure labels |
Apple Silicon · Metal · Python 3.13 / 3.14
Quick start
uv venv --python 3.13
source .venv/bin/activate
repo="https://github.com/MedMLX/segresnet-mlx"
release="$repo/releases/download/v0.2.1"
uv pip install "$release/segresnet_mlx-0.2.1-py3-none-any.whl"
uv tool install huggingface-hub
hf download MedMLX/segresnet-renal-cect-mlx --local-dir models
Replace the example input paths with your own files.
from segresnet_mlx.medmlx import run
result = run(
bundle='renalStructures_CECT_segmentation',
arterial_path='arterial.nii.gz',
venous_path='venous.nii.gz',
excretory_path='excretory.nii.gz',
weights_path='models/segresnet-renal-cect.safetensors',
output_dir='outputs',
)
print(result["outputs"])
All three CT phases must share the same voxel grid.
Use & license
For research and education. Not validated for clinical use.
Weights: Apache-2.0. Notices.
Hardware compatibility
Log In to add your hardware
Quantized
Model tree for MedMLX/segresnet-renal-cect-mlx
Base model
MONAI/renalStructures_CECT_segmentation