Skip to main content

totalsegmentator-mlx

Segment 117 CT structures with TotalSegmentator v2 in native MLX. Includes standard, fast and coarse modes.

Docs · MedMLX

Standard-mode 3D surfaces and axial CT segmentation

Standard-mode 3D surfaces from autoPET-III (CC BY-NC 4.0) and an axial slice from AMOS22 (Ji et al.). Surfaces and contours are smoothed for display.

Input Output
3D CT · NIfTI Multilabel mask on the input grid

Apple Silicon · Metal · Python 3.13 / 3.14 · uv

Quick start

uv venv --python 3.13
source .venv/bin/activate
uv pip install "totalsegmentator-mlx[conversion]"

Convert the TotalSegmentator v2 checkpoints once, then segment:

totalsegmentator-mlx convert --source-model-dir ~/.totalsegmentator/nnunet/results \
  --output-model-dir models --models organs vertebrae cardiac muscles ribs
totalsegmentator-mlx predict -i ct.nii.gz -o mask.nii.gz --model-dir models

Get the checkpoints from TotalSegmentator. Docs cover model folders, modes and cropping.

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 totalsegmentator-mlx 0.1.2.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for totalsegmentator-mlx 0.1.2.post1
File Size Uploaded Provenance Actions
totalsegmentator_mlx-0.1.2.post1.tar.gz 27.5 kB Without provenance Details for totalsegmentator_mlx-0.1.2.post1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for totalsegmentator-mlx 0.1.2.post1
File Interpreter ABI Platform Actions
totalsegmentator_mlx-0.1.2.post1-py3-none-any.whl Python 3 none any Details for totalsegmentator_mlx-0.1.2.post1-py3-none-any.whl

Total release size: 62.6 kB

Release files / totalsegmentator_mlx-0.1.2.post1.tar.gz

Download URL totalsegmentator_mlx-0.1.2.post1.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3bf6cc286c33b0418273137fa994468b193cce36b98730a6d1723d8b3a492f61
BLAKE2b-256 checksum
How to use checksums
ac5aea1dd8f990eccd5fd3dec75327041b20e242ee5fe90242e108850cbdad3b
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 / totalsegmentator_mlx-0.1.2.post1-py3-none-any.whl

Download URL totalsegmentator_mlx-0.1.2.post1-py3-none-any.whl
Size 35.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25078f748e6451777f78d0116a6778bb015bc4d6f74d513318d81c89c1890f80
BLAKE2b-256 checksum
How to use checksums
f2fd4c2793e159a4f608bf51ffcb4dde253db0f73b9f68117a84600bc7be4cb9
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 totalsegmentator-mlx 0.1.2.post1

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