synthseg-mlx
Segment brain MRI or CT with SynthSeg in native MLX. Includes cortical parcellation, structure volumes and QC scores.
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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| synthseg_mlx-0.2.1.tar.gz | 51.1 kB | Without provenance | Details for synthseg_mlx-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| synthseg_mlx-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for synthseg_mlx-0.2.1-py3-none-any.whl |
Total release size: 118.0 kB
Release files / synthseg_mlx-0.2.1.tar.gz
| Download URL | synthseg_mlx-0.2.1.tar.gz |
|---|---|
| Size | 51.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2743fc74e251e288ef822be879e91ff888532c5c3a5cafb84a51cbb1fecc2ce
|
|
BLAKE2b-256 checksum How to use checksums |
f15d6524bd623777411ca41702b34e4ffd05e5143f3304172d0f191946e3c88b
|
| 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.1-py3-none-any.whl
| Download URL | synthseg_mlx-0.2.1-py3-none-any.whl |
|---|---|
| Size | 66.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6033d541a234a83297c6cafa2a6400bc0cb1765bda6f2d59496829515bb2a03
|
|
BLAKE2b-256 checksum How to use checksums |
2d22231bfecd4b3e791bf38503b4d1b43023955f1aa57f4db0b751dce6bd7c7e
|
| 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.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.