TotalSegmentator error at first run: Command ...Python\Scripts\TotalSegmentator... returned non-zero exit status 120

Thanks for your comment, @wasserth. I believe the weights are just at the “TOTALSEG_WEIGHTS_PATH” independent of 3D Slicer.

In Windows 11 I find the “3d_fullres” folder only once at

C:\Users\Rudolf\.totalsegmentator\nnunet\results\nnUNet\3d_fullres\

after a successful TotalSegmentator install.

1 Like

thank you very much
and I have just find the path like you described and I run the source TotalSegment code in linux and the path was ’ :~/.totalsegmentator/nnunet/results/nnUNet/3d_fullres’.
and I have just put the weight zip files unzip there. the code run well , and the results were amazing
thank you.

1 Like

5 posts were split to a new topic: TotalSegmentator error at first run: ‘DummyFile’ object has no attribute ‘flush’

That’s right! Thank you very much!

Hello,
I want to now if totalsegmenter goes fast with mac book M2, and which modules does it requere?
Thanks

AI support in Apple Silicon systems is still lagging behind. Apple MPS acceleration is available now for some pytorch features, which significantly improves speed. However, MPS-accelerated pytorch is not usable for TotalSegmentator yet, because some features required by nn-UNet are not supported.

So you don’t advise me to buy MacOs for 3d slicer?


However i have done this with mac book air M2🤔

Generally Slicer on mac systems works pretty well most operations, however ML models aren’t as well supported since most of that work requires Nvidia systems for top performance currently. That may change in the future, but that’s the state of things now.

I have a similar problem, can you help me? Thank you

Traceback (most recent call last):
File “”, line 5, in
File “”, line 148, in
File “C:/3DSlicer/Slicer 5.6.2/slicer.org/Extensions-32448/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 971, in process
self.processVolume(inputFile, inputVolume,
File “C:/3DSlicer/Slicer 5.6.2/slicer.org/Extensions-32448/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 1045, in processVolume
self.logProcessOutput(proc)
File “C:/3DSlicer/Slicer 5.6.2/slicer.org/Extensions-32448/TotalSegmentator/lib/Slicer-5.6/qt-scripted-modules/TotalSegmentator.py”, line 817, in logProcessOutput
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command ‘[‘C:/3DSlicer/Slicer 5.6.2/bin/…/bin\PythonSlicer.EXE’, ‘C:\3DSlicer\Slicer 5.6.2\lib\Python\Scripts\TotalSegmentator.exe’, ‘-i’, ‘C:/Users/Familia Larragueta/AppData/Local/Temp/Slicer/__SlicerTemp__2024-07-31_11+15+21.031/total-segmentator-input.nii’, ‘-o’, ‘C:/Users/Familia Larragueta/AppData/Local/Temp/Slicer/__SlicerTemp__2024-07-31_11+15+21.031/segmentation’, ‘–ml’, ‘–task’, ‘total’, ‘–fast’, ‘–device’, ‘cpu’]’ returned non-zero exit status 1.

You probably have either ran out of memory (try on a smaller, lower-resolution CT) or there were problems installing required libraries. Please check the application log to get hints on what exactly happened.