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

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
File Size Uploaded Provenance Actions
totalsegmentator_mlx-0.1.2.tar.gz 27.4 kB Without provenance Details for totalsegmentator_mlx-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 62.2 kB

Release files / totalsegmentator_mlx-0.1.2.tar.gz

Download URL totalsegmentator_mlx-0.1.2.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
61057b5d40bf51da32616117f2e9b21802c097b0f136c755f0b2f3e62eb349d8
BLAKE2b-256 checksum
How to use checksums
bd8392192f8dce91e4219f7bd418fcd9887d492824c2431eaf2ed315ce4a9b50
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.2-py3-none-any.whl

Download URL totalsegmentator_mlx-0.1.2-py3-none-any.whl
Size 34.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef47ed2d20b5564e48a1f090646a0323cc5e9a88548614270bfc02501a3ee063
BLAKE2b-256 checksum
How to use checksums
18ac5575c71182395a070c75984d0e305d3b2603b0698522360200ee769fc131
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.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