Project-MONAI / VISTA

MONAI Versatile Imaging Segmentation and Annotation
Apache License 2.0
123 stars 16 forks source link

Poor Segmentation Results When Segmenting Specific Regions #42

Closed VinyehShaw closed 2 weeks ago

VinyehShaw commented 3 weeks ago

Hi there,

I’m working with chest CT images in nii.gz format and have already applied rescale "hu" preprocessing. When I run infer_everything with vista3d, the segmentation results are good, and all regions are segmented as expected. However, when I try to segment some specific regions, such as the lungs or bones, the results are almost entirely black and unusable.

Could you please help me understand why this is happening? Is there any additional preprocessing required or some parameter adjustment I might be missing?

Thanks in advance for your help.

heyufan1995 commented 2 weeks ago

Hi: I assume you are using "Kidney", "Lung", "Bone" (class index [2, 20, 21]) for indivisual class segmentation. Those indexes are removed from training and we only use their sub-classes (left/right kidney, 5 lung lobes, 21 bone substructures). See issues https://github.com/Project-MONAI/VISTA/issues/41

For inference, please use the monai model zoo https://github.com/Project-MONAI/model-zoo/tree/dev/models/vista3d which solved this problem by converting "Kidney", "Lung", "Bone" (class index [2, 20, 21]) to their subclasses.