Skip to main content

totalsegmentator-mlx

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

Docs · MedMLX

totalsegmentator-mlx example output

Fast-mode 3D surfaces and an axial slice from an autoPET CT.

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 --seed
source .venv/bin/activate
python -m pip install "totalsegmentator-mlx[conversion]==0.1.1"

Convert your 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

The PyPI package contains code only. Obtain trusted TotalSegmentator v2 checkpoints from upstream under their publisher terms, then convert your local copies. No checkpoints are downloaded automatically. 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.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 totalsegmentator-mlx 0.1.1
File Size Uploaded Provenance Actions
totalsegmentator_mlx-0.1.1.tar.gz 27.4 kB Without provenance Details for totalsegmentator_mlx-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 62.4 kB

Release files / totalsegmentator_mlx-0.1.1.tar.gz

Download URL totalsegmentator_mlx-0.1.1.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d71860307dfd95dd2e5df7c0fb4e1bfe672be4f360c60232a798396ecfe1c5f3
BLAKE2b-256 checksum
How to use checksums
cd54c82819cadb3f3f1ea0608380b2d6dec47f2431c7c54a8f9e1c8cdf505aec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / totalsegmentator_mlx-0.1.1-py3-none-any.whl

Download URL totalsegmentator_mlx-0.1.1-py3-none-any.whl
Size 34.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34c911cfe905a8583876f83fc71576eb55dc457cc4bfa9c25539adee0a65420e
BLAKE2b-256 checksum
How to use checksums
b6ba38283cfd80b9abc9d28a2d88df207b2b3f9d0813b79fbba597ba8b3d5907
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for totalsegmentator-mlx 0.1.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