# TotalSegmentator

**URL:** <https://discourse.slicer.org/t/totalsegmentator/32687>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [November 9, 2023, 3:02am UTC](https://discourse.slicer.org/t/totalsegmentator/32687 "2023-11-09T03:02:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuanw](https://avatars.discourse-cdn.com/v4/letter/y/ec9cab/32.png) [@yuanw](https://discourse.slicer.org/u/yuanw)\
**Post date:** [November 9, 2023, 3:02am UTC](https://discourse.slicer.org/t/totalsegmentator/32687/1 "2023-11-09T03:02:13Z")

</div>

When I use the Total Segmentator module for total segmentation, if I select full resolution, the following error will appear, but if I select fast, the following error will not appear.

Failed to compute results.

Command ‘[‘C:/Users/hooray/AppData/Local/slicer.org/Slicer 5.4.0/bin/…/bin\PythonSlicer.EXE’, ‘C:\Users\hooray\AppData\Local\slicer.org\Slicer 5.4.0\lib\Python\Scripts\TotalSegmentator’, ‘-i’, ‘C:/Windows/Temp/Slicer/\_\_SlicerTemp\_\_2023-11-09\_10+57+56.252/total-segmentator-input.nii’, ‘-o’, ‘C:/Windows/Temp/Slicer/\_\_SlicerTemp\_\_2023-11-09\_10+57+56.252/segmentation’, ‘–ml’, ‘–task’, ‘total’]’ returned non-zero exit status 1.

---

<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:** [November 9, 2023, 5:22pm UTC](https://discourse.slicer.org/t/totalsegmentator/32687/2 "2023-11-09T17:22:17Z")

</div>

It is probably a GPU memory issue. What is your GPU (model, brand?)

---

<div class="post-metadata">

**Author:** ![yuanw](https://avatars.discourse-cdn.com/v4/letter/y/ec9cab/32.png) [@yuanw](https://discourse.slicer.org/u/yuanw)\
**Post date:** [November 13, 2023, 8:25am UTC](https://discourse.slicer.org/t/totalsegmentator/32687/3 "2023-11-13T08:25:28Z")

</div>

I don’t have a GPU with more than 7G of video memory, so I am using CPU computing. Can’t CPU computing use full resolution?

---

<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:** [November 13, 2023, 10:43am UTC](https://discourse.slicer.org/t/totalsegmentator/32687/4 "2023-11-13T10:43:46Z")

</div>

Yes, you can configure Pytorch to use the CPU only. Uninstall Pytorch, then select “cpu”, then install Pytorch again.

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/6/466cbca1bb4f1c17c30407340c7931ec058d9111.png)

---

<div class="post-metadata">

**Author:** ![yuanw](https://avatars.discourse-cdn.com/v4/letter/y/ec9cab/32.png) [@yuanw](https://discourse.slicer.org/u/yuanw)\
**Post date:** [November 17, 2023, 1:57am UTC](https://discourse.slicer.org/t/totalsegmentator/32687/5 "2023-11-17T01:57:07Z")

</div>

I changed my computer to a 4060laptop gpu, and now I get the following error

WARNING: Ignoring invalid distribution -illow (e:\soft\slicer 5.5.0-2023-11-14\lib\python\lib\site-packages)  
Requirement already satisfied: pillow\<10.1 in e:\soft\slicer 5.5.0-2023-11-14\lib\python\lib\site-packages (10.0.1)  
WARNING: Ignoring invalid distribution -illow (e:\soft\slicer 5.5.0-2023-11-14\lib\python\lib\site-packages)  
WARNING: There was an error checking the latest version of pip.  
E:/Soft/Slicer 5.5.0-2023-11-14/slicer.org/Extensions-32325/TotalSegmentator/lib/Slicer-5.5/qt-scripted-modules/TotalSegmentator.py:880: UserWarning: ‘has\_cuda’ is deprecated, please use ‘torch.backends.cuda.is\_built()’  
cuda = torch.cuda if torch.has\_cuda and torch.cuda.is\_available() else None  
[Python] Failed to compute results.  
[Python] Command ‘[‘E:/Soft/Slicer 5.5.0-2023-11-14/bin/…/bin\PythonSlicer.EXE’, ‘E:\Soft\Slicer 5.5.0-2023-11-14\lib\Python\Scripts\TotalSegmentator.exe’, ‘-i’, ‘C:/Users/13790/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2023-11-17\_09+51+55.923/total-segmentator-input.nii’, ‘-o’, ‘C:/Users/13790/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2023-11-17\_09+51+55.923/segmentation’, ‘–ml’, ‘–task’, ‘total’]’ returned non-zero exit status 1.  
Traceback (most recent call last):  
File “E:/Soft/Slicer 5.5.0-2023-11-14/slicer.org/Extensions-32325/TotalSegmentator/lib/Slicer-5.5/qt-scripted-modules/TotalSegmentator.py”, line 292, in onApplyButton  
self.logic.process(self.ui.inputVolumeSelector.currentNode(), self.ui.outputSegmentationSelector.currentNode(),  
File “E:/Soft/Slicer 5.5.0-2023-11-14/slicer.org/Extensions-32325/TotalSegmentator/lib/Slicer-5.5/qt-scripted-modules/TotalSegmentator.py”, line 967, in process  
self.logProcessOutput(proc)  
File “E:/Soft/Slicer 5.5.0-2023-11-14/slicer.org/Extensions-32325/TotalSegmentator/lib/Slicer-5.5/qt-scripted-modules/TotalSegmentator.py”, line 787, in logProcessOutput  
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)  
subprocess.CalledProcessError: Command ‘[‘E:/Soft/Slicer 5.5.0-2023-11-14/bin/…/bin\PythonSlicer.EXE’, ‘E:\Soft\Slicer 5.5.0-2023-11-14\lib\Python\Scripts\TotalSegmentator.exe’, ‘-i’, ‘C:/Users/13790/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2023-11-17\_09+51+55.923/total-segmentator-input.nii’, ‘-o’, ‘C:/Users/13790/AppData/Local/Temp/Slicer/\_\_SlicerTemp\_\_2023-11-17\_09+51+55.923/segmentation’, ‘–ml’, ‘–task’, ‘total’]’ returned non-zero exit status 1.
