# New extension: Fully automatic whole-body CT segmentation in 2 minutes using TotalSegmentator

**URL:** <https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710>\
**Category:** Support\
**Tags:** feature, segmentation, ai\
**Created:** [December 13, 2022, 1:32pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710 "2022-12-13T13:32:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 13, 2022, 1:32pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/1 "2022-12-13T13:32:08Z")

</div>

The **[TotalSegmentator AI model is now available as an extension for 3D Slicer](https://github.com/lassoan/SlicerTotalSegmentator#totalsegmentator)** version 5.2 and above (see installation instructions [here](https://github.com/lassoan/SlicerTotalSegmentator#setup)).

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/7/d7de17ed588712331572fcd5de59f85ae9f2c9d1.jpeg)

A large number of AI segmentation models have been developed over the past few years, but [TotalSegmentator](https://github.com/wasserth/TotalSegmentator) stands out in several aspects:

- **it can segment many structures** : 104 anatomical structures (all abdominal organs, bones, larger vessels, muscles)
- **it is very robust** : it can segment any whole-body, abdominal, chest CT images, regardless of image resolution and field of view
- **fast** : computation time at full resolution is 1-2 minutes on a CUDA-capable GPU; and about 1-minute at low-resolution mode on CPU

While it is not perfect (there can be a couple of few-millimeter segmentation errors), the segmentation is accurate enough for most purposes - 3D visualization, quantification, specifying region of interest for segmentation, registration, or further analysis.

TotalSegmentator extension can be installed by a few clicks in the extensions manager. It does not require a GPU, it can segment a whole-body CT in about a minute using just the CPU, but a CUDA-capable GPU is recommended for full-resolution segmentation (which takes 1-2 minutes on GPU but it would take 40-50 minutes on CPU).

Demo and tutorial video:

[![](https://img.youtube.com/vi/osvMB5SKcVQ/maxresdefault.jpg "Automatic whole-body CT segmentation in 2 minutes using 3D Slicer and TotalSegmentator") ](https://www.youtube.com/watch?v=osvMB5SKcVQ)

The [TotalSegmentator segmentation engine](https://github.com/wasserth/TotalSegmentator) used in this extension was created at the department of Research and Analysis at University Hospital Basel using the [nnU-Net framework](https://github.com/MIC-DKFZ/nnUNet) developed at DKFZ. If you use this tool then please cite: `Wasserthal J., Meyer M., Breit H., Cyriac J., Yang S., Segeroth M. TotalSegmentator: robust segmentation of 104 anatomical structures in CT images, 2022. https://arxiv.org/abs/2208.05868. arXiv: 2208.05868`

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 13, 2022, 7:59pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/2 "2022-12-13T19:59:47Z")

</div>

11 posts were split to a new topic: [TotalSegmentator error at first run: “Command ‘pip’, ‘install’, ‘git+https://github.com/wasserth/TotalSegmentator.git’, ‘–no-deps’ returned non-zero exit status”](https://discourse.slicer.org/t/totalsegmentator-error-at-first-run-command-pip-install-git-https-github-com-wasserth-totalsegmentator-git-no-deps-returned-non-zero-exit-status/26715)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 14, 2022, 7:27pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/3 "2022-12-14T19:27:28Z")

</div>

4 posts were split to a new topic: [TotalSegmentator for only segmenting the spine](https://discourse.slicer.org/t/totalsegmentator-for-only-segmenting-the-spine/26734)

---

<div class="post-metadata">

**Author:** ![philippepellerin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/philippepellerin/32/16062_2.png) [@philippepellerin](https://discourse.slicer.org/u/philippepellerin)\
**Post date:** [December 14, 2022, 4:56pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/6 "2022-12-14T16:56:40Z")

</div>

Dear Andras, as I have said in an other post where you replied to a question, you have done an incredible job and I received it as my prefered X’mas gift.  
Thanks again and season greeting.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 14, 2022, 7:28pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/8 "2022-12-14T19:28:59Z")

</div>

3 posts were split to a new topic: [Offline installation of TotalSegmentator](https://discourse.slicer.org/t/offline-installation-of-totalsegmentator/26735)

---

<div class="post-metadata">

**Author:** ![Juicy](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Juicy](https://discourse.slicer.org/u/Juicy)\
**Post date:** [December 14, 2022, 9:36pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/9 "2022-12-14T21:36:40Z")

</div>

Wow, this is really amazing! Excellent work. As Pellerin said, great Xmas present!!

---

<div class="post-metadata">

**Author:** ![spalte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/spalte/32/17735_2.png) [@spalte](https://discourse.slicer.org/u/spalte)\
**Post date:** [December 16, 2022, 2:46pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/10 "2022-12-16T14:46:13Z")

</div>

Wow that is awesome!

---

<div class="post-metadata">

**Author:** ![volkodavmyx](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/volkodavmyx/32/15588_2.png) [@volkodavmyx](https://discourse.slicer.org/u/volkodavmyx)\
**Post date:** [December 16, 2022, 5:02pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/11 "2022-12-16T17:02:04Z")

</div>

Hmm. Does the module require any special CUDA drivers, or it must work on standard Game-ready Nvidia drivers?

I tried module, and it ignored my 2080ti. 🥲

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 16, 2022, 7:47pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/12 "2022-12-16T19:47:50Z")

</div>

You must use [one of the CUDA versions listed on pytorch website as “Compute platform” for your system](https://pytorch.org/get-started/locally/), which is currently CUDA 11.6 or 11.7 for Windows and Linux. All other CUDA versions are ignored. Gaming cards (GeForce RTX) are fine. See [documentation](https://github.com/lassoan/SlicerTotalSegmentator/blob/main/README.md#tutorial) for some more details.

---

<div class="post-metadata">

**Author:** ![Esteban\_Barreiro](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/esteban_barreiro/32/5430_2.png) [@Esteban\_Barreiro](https://discourse.slicer.org/u/Esteban_Barreiro)\
**Post date:** [December 17, 2022, 11:21pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/13 "2022-12-17T23:21:53Z")

</div>

This is extremely beautifull!!! Cant wait to try it out! Im amazed!!! \<3

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 19, 2022, 3:52am UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/14 "2022-12-19T03:52:26Z")

</div>

3 posts were split to a new topic: [Use TotalSegmentator with atlasess](https://discourse.slicer.org/t/use-totalsegmentator-with-atlasess/26814)

---

<div class="post-metadata">

**Author:** ![sandigeeup](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sandigeeup/32/13722_2.png) [@sandigeeup](https://discourse.slicer.org/u/sandigeeup)\
**Post date:** [December 19, 2022, 3:30pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/15 "2022-12-19T15:30:48Z")

</div>

Hei, thank you so much, this looks amazing, but not able to find it in extensions manager. Using 5.0.3 ?

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [December 19, 2022, 4:09pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/16 "2022-12-19T16:09:36Z")

</div>

Please use the extension from Slicer 5.2.1 stable, it is not compatible with previous Slicer versions.

---

<div class="post-metadata">

**Author:** ![sandigeeup](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sandigeeup/32/13722_2.png) [@sandigeeup](https://discourse.slicer.org/u/sandigeeup)\
**Post date:** [December 19, 2022, 4:56pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/17 "2022-12-19T16:56:04Z")

</div>

> [@sandigeeup](#):
>
> just having a play with some canine data sets 🙂

haha, let us know if it works! 🐕

---

<div class="post-metadata">

**Author:** ![sandigeeup](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sandigeeup/32/13722_2.png) [@sandigeeup](https://discourse.slicer.org/u/sandigeeup)\
**Post date:** [December 19, 2022, 6:09pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/18 "2022-12-19T18:09:23Z")

</div>

Needs a little refining for canine data sets 😀  
 ![Picture1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/f/2fb15b0a5b4f90aa0c443963f501b4cbb4e323c9.jpeg)

. What is the lights extension, I have tried to find that but can’t?  
 ![Picture4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/3/43146a7208c71d8bbac5ef571340062722af0544.jpeg)

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [December 19, 2022, 6:37pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/19 "2022-12-19T18:37:45Z")

</div>

> [@sandigeeup](#):
>
> What is the lights extension

The “Lights” module is in the “Sandbox” extension.

---

<div class="post-metadata">

**Author:** ![Chop1n](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chop1n/32/17783_2.png) [@Chop1n](https://discourse.slicer.org/u/Chop1n)\
**Post date:** [December 21, 2022, 12:04pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/20 "2022-12-21T12:04:58Z")

</div>

Hi,

I’ve been following and using Slicer for a while. Today I’m giving a try to this magnific new tool. It really works well with the Sample data, but I get a wrong segmentation when working with my own DICOM file.

I add the file, then open TotalSegmentator with the configs you can see there. What can be happening? Thanks again for you huge contribution for this field.

 ![TotalSegmentator - CMF Wrong segmentation](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/8/18b34b3cedc05d2bf6c4ed9b6dacb118313254cf.jpeg)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [December 21, 2022, 12:36pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/21 "2022-12-21T12:36:54Z")

</div>

That result looks reasonable. There’s a big segment called ‘face’ at the front of the head. My understanding is that this can be used to remove features that might otherwise identify the individual subject. Removing these features makes it easier to share 3D data.

---

<div class="post-metadata">

**Author:** ![Chop1n](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chop1n/32/17783_2.png) [@Chop1n](https://discourse.slicer.org/u/Chop1n)\
**Post date:** [December 21, 2022, 7:55pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/22 "2022-12-21T19:55:35Z")

</div>

Thanks for your reply, Pieper!

I guess that CMF structures can’t be segmented due to data protection on the training process. I’m right?  
After reading your comment I have loaded different body CT scans and the result was good.

Hats off to the development team.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [December 21, 2022, 8:06pm UTC](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710/23 "2022-12-21T20:06:02Z")

</div>

Right now there are no CMF-specific substructures included in the TotalSegmentator model. There are dedicated models in development to subdivide the head into relevant anatomical regions. Some of that work will be discussed during the upcoming [Project Week](https://projectweek.na-mic.org/PW38_2023_GranCanaria/).

[Next page](https://discourse.slicer.org/t/new-extension-fully-automatic-whole-body-ct-segmentation-in-2-minutes-using-totalsegmentator/26710.md?page=2)
