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
Related to label deviating position (DeepEdit multi label app) #649
Comments
@diazandr3s can you help on the deepedit issue. Looks like some post-transform issue.
If you have DICOM Webserver, we currently support NIFTI/Label masks to get converted into DICOM-Seg using dcmqi tools (itkimage2segimage). We didn't see a use-case of producing DICOM-RT so far. |
Thanks for pinging me here. Would it be possible to try with the latest MONAI Label version? Install the weekly version: |
****MONAI Label deepedit is one kind of example App. There can be multiple ways to solve certain use-cases. For example you can even train segmentation model per single structure or use other networks. Or use combinations of models (not just one deepedit/deeplearning model).** <-- Thank you this is clear If you have DICOM Webserver, we currently support NIFTI/Label masks to get converted into DICOM-Seg using dcmqi tools (itkimage2segimage). We didn't see a use-case of producing DICOM-RT so far. <-- I have used OHIF, you can directly import dicom files, but after segmenting there is only the option to export NRRD or NIFTI. Most systems in Radiation oncology work with DICOM-RT files it would be nice if there was a Dicom-RT directly. Thank you for your quick response and help |
when you save/submit the label to monailabel.. it gets added as DICOM SEG into your Orthanc/DICOM server.. |
thank you for your last suggestion, I installed the latest weekly version using [pip install monailabel-weekly] however after installing I got the message "Successfully installed monailabel-weekly-0.4.dev2205". Is this correct? because the latest version I can find is monailabel-weekly 0.4.dev2208. After installation I ran a new test; x and y direction still a difference of -2, however in the z direction it is now correct so no more deviation. |
Thanks, @OB-1606. |
hereby the log file |
Thanks for your quick response, @OB-1606. This is the result of upsampling both image and predicted mask. By default, the deepedit_multilabel App resizes the images to 128x128x128. See here. This means, images are downsampled before performing inference and then upsampled to the original size. The predicted label is originally 128 cube and then upsample to the original image size. You can easily change this if you have enough GPU memory. What is the average image size you're using for this? With regards to the monailabel version, let's use the one you have before (monailabel-weekly-0.4.dev2205) while we investigate the error you've faced. Don't think there are major differences between those. |
Thanks again, I checked for several images: 276 x 276 x 80. I also use heuristic_planner does that matter? |
Yes, heuristic planner is working and it considers the available GPU memory to define the image size for training and inferencing. I take this from the log you attached before:
I see your GPU has around 9 GB of memory available. I'm afraid it won't be possible to train a model with bigger image size using this GPU card. |
so if I use a different GPU (larger memory size) solves this problem? |
Yes, it should! You can either leave the heuristic planner to decide the image size or you just disable it and fix the image size yourself here https://github.com/Project-MONAI/MONAILabel/blob/main/sample-apps/deepedit_multilabel/main.py#L57 |
based on the image and bug description.. this looks like an issue with resize (round) issue.. just a hint from myside.. may be i am wrong.. |
changing current GPU is not straight forward at this moment and I still cant understand why its always the same deviation? |
@SachidanandAlle, I think the same. The prediction is blocky and deviated because of the image resizing done for training and inference. |
what is the minimum GPU memory required to solve this? I'm already using some post labeling steps which makes the labels smoother but the deviation makes it a bit confusing |
This is a good question, @OB-1606. This depends on different factors such as image size, data transforms, network architecture, batch size, etc Hope this helps. |
I see no further comments.. closing the issue for now. |
Dear Sachidanand,
First of all I would like to thank and congratulate you for your tremendous work. AI for healthcare imaging has never been more accessible.
I am a medical physicist in radiotherapy department in Amsterdam. I am currently investigating the possibilities of deep learning based segmentation in adaptive radiotherapy using MRI images. I've been using/developing monailabel APP (deep_edit multilabel app) for a while and so far I'm very happy with it.
However, I have encountered a few issues and have not been able to resolve them and I hope you can help me with that;
-I use this app to segment different organs in the abdomen. The results are very good for 8 of the 9 organs (dice > 0.95), but for the duodenum it is much lower. Is there an opportunity within monailabel to put more focus on improving a single structure.
Kind Regards
OB
The text was updated successfully, but these errors were encountered: