Skip to main content

segresnet-mlx

Segment brain tumors, renal structures and whole-body CT anatomy with MONAI SegResNet models in native MLX.

Docs · MedMLX

SegResNet brain tumor segmentation in axial, coronal and sagittal views

BraTS bundle output on a Medical Segmentation Decathlon brain MRI: tumor core (red), edema (green) and enhancing tumor (yellow).

Input Output
MRI sequences or CT volumes Segmentation on the input grid

Apple Silicon · Metal · Python 3.13 / 3.14 · uv

Quick start

uv venv --python 3.13
source .venv/bin/activate
uv pip install segresnet-mlx huggingface-hub

Download the converted BraTS weights, then run:

from huggingface_hub import hf_hub_download
from segresnet_mlx.medmlx import run

bundle = "brats_mri_segmentation"
weights = hf_hub_download("MedMLX/segresnet-brats-mlx", "segresnet-brats.safetensors")

result = run(
    bundle=bundle,
    t1c_path="t1c.nii.gz",
    t1_path="t1.nii.gz",
    t2_path="t2.nii.gz",
    flair_path="flair.nii.gz",
    weights_path=weights,
    output_dir="out",
)
print(result["outputs"]["mask"])

Keep input volumes on the same voxel grid. Converted weights are also available for renal CECT. Docs cover checkpoint conversion and whole-body CT.

License

Apache-2.0. See third-party notices. Model weights retain their publisher terms.

For research and education. Outputs require human review.

Metadata

Release files for segresnet-mlx 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for segresnet-mlx 0.2.2
File Size Uploaded Provenance Actions
segresnet_mlx-0.2.2.tar.gz 35.2 kB Without provenance Details for segresnet_mlx-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for segresnet-mlx 0.2.2
File Interpreter ABI Platform Actions
segresnet_mlx-0.2.2-py3-none-any.whl Python 3 none any Details for segresnet_mlx-0.2.2-py3-none-any.whl

Total release size: 77.5 kB

Release files / segresnet_mlx-0.2.2.tar.gz

Download URL segresnet_mlx-0.2.2.tar.gz
Size 35.2 kB
Tags Source
SHA-256 checksum
How to use checksums
33d2b0a4ab560e76c0d13dcf3ec6c2ef11834276f4c5a23456b6df5273e53872
BLAKE2b-256 checksum
How to use checksums
893ec616abb27a0f7dd134248d973303292b7f2fbef28d6cd7e670313a042cfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / segresnet_mlx-0.2.2-py3-none-any.whl

Download URL segresnet_mlx-0.2.2-py3-none-any.whl
Size 42.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8be6586917a664dc4b0523925c664243b4f238d511bb5cca98570171d5cacf9
BLAKE2b-256 checksum
How to use checksums
9610307d0f9a7af59336f048835039dd12c1c5537a2f478d6e8d8773d779ba83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for segresnet-mlx 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page