TotalSegmentator icon indicating copy to clipboard operation
TotalSegmentator copied to clipboard

roi_subset: lung_vessels stop working

Open mingtian126 opened this issue 1 year ago • 3 comments

I had excellent results of lung_vessels segmentation before (big thank you for the totalsegmentator team!), but it stops working now. Here's the error: site-packages/totalsegmentator/python_api.py", line 358, in totalsegmentator crop_mask[organ_seg_data == class_map_inv[roi]] = 1 ~~~~~~~~~~~~~^^^^^ KeyError: 'lung_vessels'

I looked through the available roi_subset, lung_vessels are not in the list anymore. Is there an update? Thank you!

mingtian126 avatar Oct 07 '24 16:10 mingtian126

Unfortunately I can not reproduce this issue. When I run it it works fine. Can you give more details: Which operating system and which TotalSegmentator version are you using?

wasserth avatar Oct 09 '24 08:10 wasserth

@wasserth Thanks for your response. I figured out that in order to segment lung_vessels, I need to use task="lung_vessels" instead of roi_subset="lung_vessels". Is there a guideline when to use task and when to use roi_subset? Thanks for the great work!

mingtian126 avatar Oct 14 '24 16:10 mingtian126

@wasserth Also, is there an option to segment vessels inside the liver? Thanks!

mingtian126 avatar Oct 14 '24 17:10 mingtian126