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

Invalid organ segmentation nii file produced from prostate_mri_lesion_seg_app #351

Open
deepakri201 opened this issue Jan 12, 2024 · 1 comment
Assignees

Comments

@deepakri201
Copy link

deepakri201 commented Jan 12, 2024

Describe the bug
I am trying create and run my own prostate_mri_lesion_seg_app. For this, I am using data from the QIN-Prostate-Repeatability collection. I've modified the app.py file to correctly select the appropriate T2, ADC, and high b value series. I've successfully deployed my own MAP, but when I go to run it, the organ segmentation nifti produced is invalid. Because of this, it does not get to the lesion segmentation stage. I've confirmed that the series were correctly identified, as the correct T2, ADC, and high b value nifti files are saved out.

To Reproduce
Steps to reproduce the behavior:

  1. I modified the Rules_T2, Rules_ADC and Rules_HIGHB to match the ImageType and SeriesDescription constraints from QIN-Prostate-Repeatability.

  2. I deployed my own MAP with no obvious errors.

  3. I then tried running the MAP on a study from QIN-Prostate-Repeatability. It correctly saved out t2/t2.nii.gz, adc/adc.nii.gz and highb/highb.nii.gz. I visually confirmed the correct series were chosen, and that the data looked okay, in Slicer.

  4. During running of the ProstateSegOperator, the following occurred for the prostate segmentation:

    Value range: (0.0, 0.0)
    Output Seg image numpy array shaped: (30, 512, 512)
    Output Seg image pixel max value: 0
    Output Seg image pixel min value: 0

    A nifti file was somehow saved out as organ/organ.nii.gz, with 0 for ImageDimensions and the wrong pixel spacing.

Expected behavior

  1. I expected to have:

    Value range: (0.0, 1.0)
    Output Seg image numpy array shaped: (30, 512, 512)
    Output Seg image pixel max value: 1
    Output Seg image pixel min value: 0

  2. I also expected to have the volume information match what was seen in the T2/ADC/highB values.

Screenshots

prostate_lesion_seg_monai_error_01_12_24

prostate_lesion_seg_monai_error_2_01_12_24

Environment (please complete the following information):

  • OS: Ubuntu 22.04
  • Python version: 3.8
  • MONAI Deploy app sdk version 0.5.1
  • MONAI version: 1.3.0
  • CUDA/cuDNN version: 12.2, driver version: 535.129.03
  • GPU models and configuration: A100
@jtetrea
Copy link
Contributor

jtetrea commented Oct 1, 2024

Sorry for not being able to provide feedback earlier @deepakri201. There were just some recent updates made to the prostate-mri-lesion-seg repository. Could you try the newer version and see if you get same issue?

@jtetrea jtetrea self-assigned this Oct 15, 2024
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