Closed mingtian126 closed 3 months ago
Found the problem, the new version changed the name to lung_upper_lobe_left etc.
subset name changed!
Hi, I suppose I'm trying to do something similar , i want to create a python code using this model, that can create segmentations only for a specific organ, like in your case lungs , i want for liver. It would really great if you can guide me on how i can do that , Im not understanding how and where to use this roi_subset. Or maybe you have created a python code already you can share that , i will teach myself. Thank you.
Here's the python code for segmenting selected organ(s): totalsegmentator(inPath, outPath,preview=False, roi_subset=['liver','gallbladder', 'kidney_left','kidney_right', 'pancreas','spleen','stomach']) Hope this helps.
I try to segment lungs using the following: totalsegmentator(input_path, output_path,preview=False,roi_subset=['lung_upper_left' , 'lung_upper_right', 'lung_lower_left' 'lung_lower_right' , 'lung_middle_right']) It worked beautifully couple of months ago, but now I got the following message on my linux system: crop_mask[organ_seg_data == class_map_inv[roi]] = 1