File size: 2,386 Bytes
30bbb7a
 
 
 
c77fb2c
 
30bbb7a
c77fb2c
 
 
 
30bbb7a
 
 
c77fb2c
 
 
30bbb7a
 
3665959
30bbb7a
3665959
30bbb7a
3665959
30bbb7a
aea355f
c77fb2c
3665959
 
 
c77fb2c
29b097b
30bbb7a
c77fb2c
30bbb7a
c77fb2c
0d64ced
c77fb2c
3665959
e598a4c
0d64ced
c77fb2c
812cab1
c77fb2c
 
3665959
30bbb7a
 
 
 
c77fb2c
 
 
 
 
 
 
 
 
30bbb7a
 
 
3665959
c77fb2c
3665959
c77fb2c
3665959
c77fb2c
3665959
fe423b3
 
 
 
c6b7806
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
license: apache-2.0
library_name: mlx
tags:
- mlx
- native-mlx
- apple-silicon
- medical-imaging
- mri
- brain-tumor
- segmentation
- research
language:
- en
inference: false
pipeline_tag: image-segmentation
base_model: MONAI/brats_mri_segmentation
---

<img src="https://huggingface.co/MedMLX/segresnet-brats-mlx/resolve/main/banner.png" alt="MedMLX — Segment. BRAIN MRI / SEGRESNET" width="100%">

# SegResNet · Brain Tumor

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

[GitHub](https://github.com/MedMLX/segresnet-mlx) · [Files](https://huggingface.co/MedMLX/segresnet-brats-mlx/tree/main) · [Docs](https://github.com/MedMLX/segresnet-mlx/blob/main/README.md#run) · [Paper](https://doi.org/10.64898/2026.10.28.26366762)

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

**Apple Silicon · Metal · Python 3.13**

## Quick start

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

uv pip install "segresnet-mlx>=0.3.1"
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.

```python
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.

## Use & license

For research and education. Not validated for clinical use.

Weights: [Apache-2.0](https://huggingface.co/MedMLX/segresnet-brats-mlx/blob/main/LICENSE). [Notices](https://huggingface.co/MedMLX/segresnet-brats-mlx/blob/main/NOTICE).

## Paper references

- [Related SegResNet approach: 3D MRI Brain Tumor Segmentation Using Autoencoder Regularization](https://arxiv.org/abs/1810.11654).

## Citation

If you use MedMLX, please cite the [MedMLX paper](https://doi.org/10.64898/2026.10.28.26366762):

```bibtex
@article{sandoval2026medmlx,
  title   = {MedMLX: On-Device Medical Imaging AI for Apple Silicon},
  author  = {Sandoval, A. and Sandoval, J. and Saleem, A.},
  journal = {medRxiv},
  year    = {2026},
  doi     = {10.64898/2026.10.28.26366762}
}
```