You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
An prostate segmentation application is built with App SDK 0.5 and a model trained with MONAI core v1. It takes in a MR T2 series, creates the segmentation image, which then get written as DICOM Seg as well as transformed into a STL image. The former looks good, while latter looks like a squished donut.
Steps/Code to reproduce bug
Application code is supper simple since it uses the built-in MONAI bundle inference operator as well as others, though the model itself is proprietary, not to be shared publicly.
Expected behavior
The STL generated from the seg image (numpy + metadata) should represent closely the seg image
Environment details (please complete the following information)
OS/Platform: Ubuntu 20.04 LTS
Python Version: 3.8
Method of MONAI Deploy App SDK install: [pip, and from source]
SDK Version: 0.5
Additional context
The STL operator has been tested with the liver and spleen application and generated the correctly mesh image. Noted that those seg images have hundreds of slices, while the prostate MR has only around 20 slices, though, it is expected the 3D spacings should be correct irrespective of number of slices.
The text was updated successfully, but these errors were encountered:
The issue has been reproduced on other segmentation applications too, eg. a Lung Seg with STL as one of the outputs. It is further confirmed that:
For the same app, if the input DICOM series has PatientPosition of HFS, both segmentation and STL output are fine, but with FFS, the STL image would appear squished.
It is further noted that, but yet to be investigated in detail, MONAI based algorithms tend to load image as canonical in the segmentation pre-processing, when input is NIfTI or other format. With MONAI Deploy App SDK, the in memory image that converted from DICOM series is directly used without "as canonical".
Describe the bug
An prostate segmentation application is built with App SDK 0.5 and a model trained with MONAI core v1. It takes in a MR T2 series, creates the segmentation image, which then get written as DICOM Seg as well as transformed into a STL image. The former looks good, while latter looks like a squished donut.
Steps/Code to reproduce bug
Application code is supper simple since it uses the built-in MONAI bundle inference operator as well as others, though the model itself is proprietary, not to be shared publicly.
Expected behavior
The STL generated from the seg image (numpy + metadata) should represent closely the seg image
Environment details (please complete the following information)
Additional context
The STL operator has been tested with the liver and spleen application and generated the correctly mesh image. Noted that those seg images have hundreds of slices, while the prostate MR has only around 20 slices, though, it is expected the 3D spacings should be correct irrespective of number of slices.
The text was updated successfully, but these errors were encountered: