Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roi_subset: lung_vessels stop working #370

Open
mingtian126 opened this issue Oct 7, 2024 · 3 comments
Open

roi_subset: lung_vessels stop working #370

mingtian126 opened this issue Oct 7, 2024 · 3 comments

Comments

@mingtian126
Copy link

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!

@wasserth
Copy link
Owner

wasserth commented Oct 9, 2024

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?

@mingtian126
Copy link
Author

@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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants