Skip to main content

segresnet-mlx

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

Docs · BraTS weights · Renal weights · MedMLX

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

Apple Silicon · Metal · Python 3.13 / 3.14 · uv

Install

uv venv --python 3.13
source .venv/bin/activate
uv pip install "segresnet-mlx @ git+https://github.com/MedMLX/segresnet-mlx.git@f60afe77518f5e617145cc4ccfa8eaa59e9eeb3e"

This source revision validates NIfTI units, voxel values and geometry before inference; PyPI 0.3.0 predates those checks.

Run

from segresnet_mlx.medmlx import brats

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

The registered models are segresnet-brats and segresnet-renal-cect. Their brats and renal_cect runners select the matching bundle internally and download MedMLX/segresnet-brats-mlx or MedMLX/segresnet-renal-cect-mlx when weights_path is omitted. An explicit folder contains segresnet-brats.safetensors for BraTS or segresnet-renal-cect.safetensors for renal CECT. The renal runner takes arterial_path, venous_path and excretory_path. Keep each model's input volumes on one voxel grid.

The standalone run(bundle=..., weights_path=...) interface remains available for explicit local checkpoints, including the whole-body CT variants. Published native weights are also available for renal CECT and whole-body CT.

Downloaded commits are returned in details.weights_revision; explicit local weights report null unless the folder carries a MedMLX download revision.

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.3.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.3.1
File Size Uploaded Provenance Actions
segresnet_mlx-0.3.1.tar.gz 37.2 kB Without provenance Details for segresnet_mlx-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 81.5 kB

Release files / segresnet_mlx-0.3.1.tar.gz

Download URL segresnet_mlx-0.3.1.tar.gz
Size 37.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ff1dafef550ac3c908f0618475ee0a606df45bee79c9e4cabea73206033b34a8
BLAKE2b-256 checksum
How to use checksums
1a37592e12a0c6fbbc01fd7475b3d465adcf754777e53c480bd9fa4dc449d722
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL segresnet_mlx-0.3.1-py3-none-any.whl
Size 44.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
810728e324c617d3ba87782a8390b3beff746f6b3ac12ac94d99a6dc244fb081
BLAKE2b-256 checksum
How to use checksums
b5091b66e6136e4494bf5d4095fe644d23cabc981c06f13d874b23782cc87a49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for segresnet-mlx 0.3.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.

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