Run this model with HF Jobs

Run MedMLX/segresnet-brats-mlx on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/MedMLX/segresnet-brats-mlx. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/MedMLX/segresnet-brats-mlx on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
MedMLX — Segment. BRAIN MRI / SEGRESNET

SegResNet · Brain Tumor

Segment brain tumor regions from four MRI sequences with the MONAI SegResNet checkpoint.

This checkpoint is the MONAI Consortium's brats_mri_segmentation bundle, built on the SegResNet method of Andriy Myronenko and co-authors. The model and the weights are theirs: see the original repository, Project-MONAI/model-zoo, and the paper, arXiv:1810.11654. This repository only repackages the released bundle (MONAI/brats_mri_segmentation) for MLX on Apple Silicon. Please cite their paper and star their repository if SegResNet is useful to you.

Original repository · Original paper · Original weights · GitHub · Files · Docs · MedMLX paper

Input Output
T1, T1ce, T2 + FLAIR · NIfTI Brain tumor segmentation

Apple Silicon · Metal · Python 3.13

Quick start

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

uv pip install "segresnet-mlx>=0.3.1,<0.4"
uv tool install huggingface-hub

hf download MedMLX/segresnet-brats-mlx --revision 14f9cda3649965729663c7365c49fd839c81a01b --local-dir models

Replace the example input paths with your own files.

from segresnet_mlx.medmlx import run

result = run(
    bundle='brats_mri_segmentation',
    weights_path='models/segresnet-brats.safetensors',
    output_dir='outputs',
    t1c_path='T1gd.nii.gz',
    t1_path='T1w.nii.gz',
    t2_path='T2w.nii.gz',
    flair_path='FLAIR.nii.gz',
)
print(result["outputs"])

All four MRI volumes must share the same voxel grid. These weights run with segresnet-mlx 0.3.x; segresnet-mlx 0.4 and later support renal CECT only.

Use & license

For research and education. Not validated for clinical use.

Weights: Apache-2.0. Notices.

Paper references

Citation

Please cite the original paper:

Myronenko, A. (2018). 3D MRI brain tumor segmentation using autoencoder regularization. arXiv:1810.11654.

If you use MedMLX, please cite the MedMLX paper:

@article{sandoval2026medmlx,
  title   = {MedMLX: On-Device Medical Imaging AI for Apple Silicon},
  author  = {Sandoval, J. and Sandoval, A. and Saleem, A.},
  journal = {medRxiv},
  year    = {2026},
  doi     = {10.64898/2026.10.28.26366762}
}
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

Model tree for MedMLX/segresnet-brats-mlx

Finetuned
(1)
this model

Collection including MedMLX/segresnet-brats-mlx

Paper for MedMLX/segresnet-brats-mlx