Totalsegmentator and monai segmentation

Hi I just updated to ed slicer 5.10.0 but I found that it is not compatible with totalsegmentator 2 and monai. May iknow why

I installed Slicer 5.10 and the TotalSegmentator extension module on Windows, and successfully ran whole-body segmentation. Everything appears to be working fine.

Could you please provide more details about the issues you are experiencing? Specifically, what operating system are you using, and what kind of failure are you encountering?

1 Like

the error is pythonslice.exe “-m”,”pip”,”install”,”pandas” return non_zero exit status 1

What graphic cards do you use guys? What VRAM do you have?

Nvidia mx20, it runs 5.8.0 without any problem, just a little bit slow

It appears that starting with CUDA 12.8, support of Nvidia Pascal cards such as your MX250 was dropped. You would have to make sure the install is grabbing a torch version with an earlier CUDA. It looks like latest torch 2.9.0 is still shipping a CUDA 12.6 variant.

However the Nvidia MX250 only has 4GB of VRAM and for totalsegmentator inference on GPU is really only supported or will work with cards that have at least 8GB of VRAM. Otherwise it will run with CPU inference.

1 Like

Hi

Thx for your advise, however I was not running gpu, I used cpu, slicer 5.8 was running with cpu although it is slow, but for slicer 5.10, totalsegmentater 2 not working, can totalsegmentater 2 run on cpu? I think yes, but it is not running and return with error about pandas.(I was using cpu option)

I’m on Windows and using Slicer 5.10.0 I installed TotalSegmentator and ran it on the CTChest sample dataset successfully using just CPU.

  • What operating systems are you using?
  • Did you install the TotalSegmentator extension directly from the ExtensionManager or did you install from a file that you manually downloaded?
  • Do you have a strong internet connection that does not have restrictions about what Python packages you can download?
  • Can you provide the full output displayed in the python console which includes the failure when it attempts to install the required python packages to run TotalSegmentator?

I use an NVIDIA GeForce RTX 4070 8GB, an i9-14900HX 2.20 GHz processor, and 16 GB of RAM, and DentalSegmentator isn’t working for me in the new version 5.10.0.

Is there any solution?

I am using windows 11 and rtx 250 I run totalsegmentator in slicer5.8 with cpu ok but not 5.10. I installed totalsegmentator using extension manager from slicer. May be i need to reinstall 5.10 all over again.

Can you provide the output when you paste the following into the Slicer python console?

print(slicer.app.applicationFilePath())
sys_info = slicer.vtkSystemInformation()
sys_info.RunMemoryCheck()
print(sys_info.GetTotalPhysicalMemory())
slicer.util.pip_install("pandas")

I have solved the exact same issue by doing this

slicer.util.pip_install("platformdirs")

@Alex_Vergara platformdirs is a dependency of which Python package? You observed an import error when running TotalSegmentator?

I got this error before installing platformdirs and it runs perfectly fine after installing it.

I repeat, this is only valid starting with Slicer5.10. None of these was present in 5.8

More details about the error here About Total Sementator (#118) · Issue · opendose/opendose3d

No errors but just exit code 1 from totalsegmentator. plaformdirs fix the error without touching anything else, IDK why. Anyways, we have added it to the python dependencies.

Our latest build is running in Slicer 5.10 Develop (!304) · Merge requests · OpenDose / SlicerOpenDose3D · GitLab

Tomorrow it will be available again after the module builds