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 --seed
source .venv/bin/activate
python -m pip install "segresnet-mlx==0.2.1" huggingface-hub

The tagged GitHub release is an alternative installation route:

repo="https://github.com/MedMLX/segresnet-mlx.git@v0.2.1"
python -m pip install "segresnet-mlx @ git+$repo" huggingface-hub

Download the public converted BraTS bundle separately, 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. The package contains code only. Public converted bundles are available separately for BraTS and renal CECT; follow each weight card and its terms. Docs cover local upstream checkpoint conversion and whole-body CT bundles. Qualification differs by bundle; see the technical notes.

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.1

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.1
File Size Uploaded Provenance Actions
segresnet_mlx-0.2.1.tar.gz 35.6 kB Without provenance Details for segresnet_mlx-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 78.3 kB

Release files / segresnet_mlx-0.2.1.tar.gz

Download URL segresnet_mlx-0.2.1.tar.gz
Size 35.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e17ee7e13875cdb616ebe7bf846a72cc0e707c06412dd9427ea02f1a3138e72d
BLAKE2b-256 checksum
How to use checksums
83d638a8c8b1f244ae1313e0e06df93a5cc59000967ce748ac5eb0f7cfae9b81
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.1-py3-none-any.whl

Download URL segresnet_mlx-0.2.1-py3-none-any.whl
Size 42.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48195ceff6e8359158896196ad888a5edc49d4a0717b67d1a58fb0c028aaf127
BLAKE2b-256 checksum
How to use checksums
3eeea1a12840b4f60bc7a968d5c6c1567d5ccc8e8a2e82f7699fbb3c6bc4dfba
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.1

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.1 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