Image segmentation

i have many 2d dicoms and want to segment them with bounding box, could someone please help me about the easiest way to segment them? (actually, i want to determine the segmentation parts(names, colors,…) for once and then use it for segmenting other images)
also i have another problem, when i load a new image, bounding boxes that i have drawn for the previous image is shown in the new image. how can i address this problem?

you can use the Total Segmentator extension.

1 Like

thank you. when running total segmentator i get this message: No module named ‘torch’

Please install torch with the Pytorch extension first. Keep in mind that you need a computer with a strong GPU to run AI programs like TotalSegmentator.

1 Like

Thanks, i installed pytorch extension but i get this message" Failed to compute results. No module named ‘torch’ " again.

Did you actually run the pytorch extension? (i.e., switch to Pytorch utils and choose automatic install)?

i used extension manager and install total segmentator. pytorch extension installed automatically beside total segmentator.
i install them on my laptop, which does not have very high GPU( NVDIA GeForce MX) could it be because of this?

Your error is torch library is missing.

Extension manager just installs the extension. I don’t know how totalsegmentator is doing, it but it is still worthwhile to switch (CTRL+F) pyTorch utils and check that torch is installed. If its not, hit automatic install and the module will load the torch most appropriate for your computer (if you don’t have Nvidia GPU, it will install the CPU version of torch).

1 Like


yes it’s not installed.

What happens when you click Install PyTorch button?

This message appears. I tried Uninstaller and then installed it again. But there is no difference.

در تاریخ شنبه ۹ دسامبر ۲۰۲۳،‏ ۰۴:۳۸ Murat Maga via 3D Slicer Community <notifications@slicer.discoursemail.com> نوشت:

Does the path you have installed Slicer and the extensions contain any non-English characters? Those occassionally cause some problems. Perhaps try installing something like C:\Slicer and then try installing the pytorch extension, and running the automatic installation.

1 Like