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>=0.3.2"

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

Built distribution (wheel)

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

Total release size: 81.6 kB

Release files / segresnet_mlx-0.3.2.tar.gz

Download URL segresnet_mlx-0.3.2.tar.gz
Size 37.2 kB
Tags Source
SHA-256 checksum
How to use checksums
34ecc511b2957ade593f6c4b1c3f3b2996651b8dd0f7a7a2eb77b466ad527f15
BLAKE2b-256 checksum
How to use checksums
0d637493b6e2e761609c1b9d8ebf809a696803f1fd857ee62a44b45b10b02d0a
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.2-py3-none-any.whl

Download URL segresnet_mlx-0.3.2-py3-none-any.whl
Size 44.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4dff487d0a297c16948600476240795ffcae7057d900b3abcf7c904e5f1dba1a
BLAKE2b-256 checksum
How to use checksums
6447db28936fab0449aa1ec56e67e212394a3cf7f8329bdb0082f767fa17dd7e
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.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.

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