Skip to main content

synthseg-mlx

Segment brain MRI or CT with SynthSeg in native MLX. Includes cortical parcellation, structure volumes and QC scores.

Docs · MedMLX

synthseg-mlx example output

SynthSeg 2.0 parcellation of an NV-Generate synthetic T1 MR.

Input Output
3D brain MRI or CT · NIfTI Brain labels, volumes and QC

Apple Silicon · Metal · Python 3.13 / 3.14 · uv

Quick start

uv venv --python 3.13
source .venv/bin/activate
repo="https://github.com/MedMLX/synthseg-mlx"
uv pip install "synthseg-mlx @ git+$repo"

Download and unzip the author’s SynthSeg models, then run:

from synthseg_mlx.medmlx import run

result = run(image_path="brain.nii.gz", weights_path="SynthSeg_models", output_dir="out")
print(result["outputs"]["mask"])

Reads the original Keras checkpoints without TensorFlow. Output masks use the resampled 1 mm grid, rather than the original voxel grid.

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 synthseg-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 synthseg-mlx 0.2.2
File Size Uploaded Provenance Actions
synthseg_mlx-0.2.2.tar.gz 51.1 kB Without provenance Details for synthseg_mlx-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 118.0 kB

Release files / synthseg_mlx-0.2.2.tar.gz

Download URL synthseg_mlx-0.2.2.tar.gz
Size 51.1 kB
Tags Source
SHA-256 checksum
How to use checksums
67b51dcc983b6cb78e18ec162926bdcd36a9a4156cffbd1638653018539d0160
BLAKE2b-256 checksum
How to use checksums
206fce7f44b2bed0d19ef5e6efc9442ede65a4cda1a19ff98b47accb4e91aeea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

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

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

Security for synthseg-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