TotalSegmentator icon indicating copy to clipboard operation
TotalSegmentator copied to clipboard

Segmentation process gets stuck sometimes

Open mik0699 opened this issue 1 year ago • 2 comments

Hello, first of all thanks for your amazing work! I am actually encountering a weird problem. Sometimes the segmentation process gets stuck and does not proceed anymore, it just loops infinitely and I have to stop the execution manually. I am using the Pyhton API and the roi_subset attribute. The weird aspect is that, with the same data, if I add some classes to the roi_subset or, for example, I add the fast option, the segmentation finishes, while in other cases in does not. I can't understand why this happens only sometimes and what could be the problem because the data I use are the same. The segmentation process gets stuck in this point:

There are 1 cases in the source folder I am process 0 out of 1 (max process ID is 0, we start counting with 0!) There are 1 cases that I would like to predict

and does not proceed anymore, it just shows me this message.

Thanks in advance for your help.

mik0699 avatar Nov 10 '23 14:11 mik0699

Maybe some of the nnU-Net processes run out of memory. Does it work with a smaller image?

wasserth avatar Jan 29 '24 09:01 wasserth

Thanks for the reply, I solved it using GPU instead of CPU, so maybe the problem was exactly that one you mentioned

mik0699 avatar Jan 29 '24 10:01 mik0699