Open-source project
wasserth/TotalSegmentator avatar
wasserth/TotalSegmentator

totalsegmentator: the weights are on 3.0.0 and the packaging still says 2.18.0

Tool for robust segmentation of >100 important anatomical structures in CT and MR images

3,179 stars505 forksPythonApache-2.0

At a glance

What is it?
TotalSegmentator is a Python tool that segments anatomical structures in CT and MR images, built on nnUNet and carrying its own trained models. It keeps two version lines that have nothing to do with each other, states three different minimum Python versions in three files, and makes the clearest statement on the page in a single sentence about medical device status.
Who is it for?
TotalSegmentator is the right tool if you need a broad set of anatomical labels out of a CT or MR volume without training anything yourself, and the task list is unusually well specified, with class names, citations and dataset links per task. It is not appropriate as a clinical component without the certification context the readme itself points at, because the page says plainly that the tool is not a medical device while also noting it ships inside approved products.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 3 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • wasserth/TotalSegmentator3,179 ★ · +161
Star history
Repository2026-09-242026-11-23
wasserth/TotalSegmentator3k3.2k

161 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The weights are on 3.0.0 and the packaging still says 2.18.0

Every release tag in this repository ends in the word weights. The three most recent are v3.0.0-weights from 2026-09-07, v2.5.0-weights from 2025-01-15 and v2.4.0-weights from 2024-07-22, which tells you the tags version the trained models rather than the code. The code has its own number, and it is not close to the weights. The packaging script declares the version as 2.18.0. So a checkout of the default branch is version 2.18.0 of the code, and the models it can download are on a 3.0.0 line, and there is no single number that describes the pair. The gaps between the weight tags are also uneven, roughly six months then twenty months, while the last push on the default branch is dated 2026-10-02, about a month after the newest weights tag. Nothing on the page explains how code and weights are meant to be paired.

Three different Python floors across the readme, the setup script and the linter

Three files state a minimum Python version and no two of them agree. The Installation section requires Python 3.10 or newer, alongside PyTorch 2.0.0 or newer. The packaging script declares a requirement of 3.9 or newer. And the linter configuration, which lives in the project's pyproject file, sets its target version to py39. So the tool's own documentation asks for a newer interpreter than the one its packaging permits, and the linter is checking syntax for a version older than both. The container makes it a fourth value, since it builds on a slim Python 3.11 image. This is not a hypothetical difference: a user on 3.9 can install the package successfully and then be held to a standard the readme never mentioned.

--fast lowers the resolution and the sentence says so in parentheses

The Usage section has three notes and the first one changes what you get rather than how long it takes. If you run on CPU, use the option --fast, which the note describes as using lower resolution, or use --roi_subset to greatly improve runtime. The second option restricts the work to a subset of regions. Only the first is a resolution change, and it is described in parentheses in the middle of a sentence about CPU use, which is the least prominent place a change of output fidelity can appear. For a segmentation tool, resolution is not a performance knob like any other: the segmentations a downstream measurement is computed from are made at a coarser grid. The second note in the same block is a device selection, --device mps for a large speedup on an M-series Mac, which is a pure throughput change by comparison.

The not-a-medical-device sentence carries a second clause about approved products

One note in the Usage block is the most consequential sentence on the page and it has two halves. This is not a medical device and is not intended for clinical usage. However, it is part of several FDA-approved products, where it has been certified as a component of the overall system. Read together, the two clauses say something narrower than either alone: the tool by itself is outside the regulatory boundary, and inside a system whose manufacturer did that certification, it is inside it. Anyone evaluating this for a clinical workflow therefore cannot answer the question from this page alone, because the certification lives with the products and not with the repository. What the page does supply is the citation trail: a Radiology AI paper with a free preprint, a separate MRI paper also with a preprint, and an instruction to cite nnUNet as well, since the tool is heavily based on it.

117 classes on CT and 50 on MR

The subtask list opens with the default task and states two counts that do not match the project's headline. The default task, named total, contains 117 main classes. Its MR counterpart, total_mr, contains 50 main classes. The repository's own description says the tool segments more than 100 important anatomical structures in CT and MR images, which is true for CT and roughly half true for MR. The class lists themselves are where the difference becomes concrete. The MR vertebrae task enumerates the sacrum and every individual vertebra by name, twenty-four entries, with a note that for CT these are part of the default task instead. And the body task differs by modality in a smaller way: the CT version includes skin, while the MR version covers only the trunk and the extremities.

The modality is chosen by a suffix on the task name

There is no flag in the documentation that says whether an image is CT or MR. The rule is a naming convention on the task, stated once: if the task name ends with _mr it works for MR images, otherwise for CT images. The two example invocations differ only by the task argument:

bash
TotalSegmentator -i ct.nii.gz -o segmentations
TotalSegmentator -i mri.nii.gz -o segmentations --task total_mr

So a typo, or a task name from a third-party list that happens not to carry the suffix, silently routes an MR volume to a CT model. Input handling is otherwise permissive: a Nifti file is allowed, and so is a folder or a zip file containing all the DICOM slices of one patient. The modality is thus inferred from a string rather than detected, and the page describes no fallback behaviour when the inference is wrong.

Three task entries end in an asterisk with no legend on the page

Reading the task list closely, several entries carry trailing punctuation that the page never explains. The cerebral bleed task lists one class and closes with an asterisk after its citation. The hip implant task lists a class name with an asterisk and a link to a training dataset. The pleural and pericardial effusion task lists two classes with two citations and a dataset link and also ends with an asterisk. The liver vessels task lists two classes and ends with an asterisk. No legend, footnote or note anywhere in the visible portion of the page explains what the asterisk marks, so a reader has four tasks whose annotation they cannot interpret. Two other tasks do carry an explicit instruction, that a training dataset can be downloaded, which tells you those tasks need data the base install does not include.

The package ships a pickle, ten classifier shards and a brain atlas

The packaging script lists its data files explicitly, and the list is where this project's non-obvious surfaces sit. It ships a SNOMED mapping as a CSV, which is how class names are tied to a medical coding system. It ships a contrast phase classifier as a pickle file, which is a serialised Python object rather than a data file. It ships two families of modality classifier, each split across five numbered JSON shards, for ten shards in total. It ships a one-millimetre brain atlas as a compressed NIfTI file inside the package, so the wheel carries imaging data and not just code. And it ships the report templates: an HTML front page, a stylesheet and two logos for the spine report, and images for the aorta report. The pickle is the entry worth thinking about, since loading one executes code, and the filenames carry dates rather than version numbers, so a newer classifier arrives only by upgrading the package.

Editorial conclusion

TotalSegmentator is the right tool if you need a broad set of anatomical labels out of a CT or MR volume without training anything yourself, and the task list is unusually well specified, with class names, citations and dataset links per task. It is not appropriate as a clinical component without the certification context the readme itself points at, because the page says plainly that the tool is not a medical device while also noting it ships inside approved products. Before you rely on a result, check which task you are running and therefore which modality the naming convention selected, check whether you used the fast path, because that changes the output resolution, and check the version pairing, since the weights and the code are versioned independently and the newest weights tag postdates the packaging version by a full major.

Frequently asked questions

what is totalsegmentator

It is a Python tool for segmentation of anatomical structures in CT and MR images, trained on a wide range of scanners, institutions and protocols, with its training data published as a CT dataset of 1228 subjects and an MR dataset of 616 subjects. It was created by the department of Research and Analysis at University Hospital Basel, is licensed Apache-2.0, and runs on Ubuntu, Mac and Windows on CPU or GPU.

how to use totalsegmentator

For a CT volume, pass an input file and an output directory. For an MR volume, add a task argument whose name ends in _mr, because the suffix is how the modality is selected. Input can be a Nifti file, or a folder or zip file holding all the DICOM slices of one patient. On CPU the page recommends --fast, which lowers the resolution, or --roi_subset to cut runtime.

Is TotalSegmentator approved for clinical use?

The readme states it is not a medical device and is not intended for clinical usage, and adds that it is part of several FDA-approved products where it has been certified as a component of the overall system. The certification belongs to those products rather than to this repository.

How do I install TotalSegmentator?

Run pip install TotalSegmentator. The stated dependencies are Python 3.10 or newer and PyTorch 2.0.0 or newer. If you intend to use the --preview option you must also install fury, and fury below version 2 additionally requires xvfb, which the page installs with an apt-get command even though it also says the tool works on Mac and Windows.

How many structures can TotalSegmentator segment?

The default task, total, contains 117 main classes for CT, and its MR counterpart total_mr contains 50. Beyond those there are many narrower tasks, from lung vessels and body to head and neck muscles and bones, vertebrae, cerebral bleed, hip implant and liver vessels, each with its own class list and citations.

Is TotalSegmentator a foundation model, and how does it compare to MONAI?

The page never uses the phrase foundation model and makes no comparison with MONAI. What it does say is that the tool is heavily based on nnUNet and asks users to cite nnUNet as well, alongside a Radiology AI paper and a separate MRI paper.

Official sources

  1. Issues
  2. License: Apache-2.0
  3. README
  4. Releases
  5. wasserth/TotalSegmentator on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/wasserth-totalsegmentator.svg)](https://hysenlabs.com/projects/wasserth-totalsegmentator)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/wasserth-totalsegmentator.svg)](https://hysenlabs.com/projects/wasserth-totalsegmentator)

Was this useful?