-
Notifications
You must be signed in to change notification settings - Fork 126
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
SCGM example in tutorial #12
Comments
Hi @udion, thanks for the feedback, I pre-processed the dataset before to remove the WM mask from the labels and I completely forgot to mention. I'll add soon a filter to do that in medicaltorch to avoid the pre-processing work, but meanwhile you can just remove the WM mask and leave the GM mask only on the label files. |
I see that all the scans consist of 3 SLICES (am I right?) and if that is the case then does and if that is the case does that mean that the example given in documentation ignores the other 2 slices and hence we may have to train other models with different slice axis (or a different model which processes 3 slices together)? |
Hi @udion, |
Few questions about the example code..
PS: I was able to get reasonable GM output, once I separated the WM and GM labels |
I wanted to customize this for my own problem (segmentation of medical RGB image dataset, it's not MRI/CT) I was able to change the dataloader and model appropriately and my model is training, the task is still the same that the model should output a binary mast, so I am using the same dice loss setup which you have in the example, but my training and validation dice losses are negative Any clues/pointers what might be wrong? |
Hi @udion, regarding the questions related to the cropping and 4 labels per rater, take a look on the article from Nature Scientific Reports called "Spinal cord gray matter segmentation using deep dilated convolutions" where we describe our steps and details about it. Regarding your validation dice being negative, it is supposed to be like that, take a look at this line here, we minimize the negative Dice. Always plot some samples of the predictions to check it as well, it's easier to see what is going on on the network. |
Hi,
I think there might be some flaw in the example uploaded, please correct me if I'm wrong.
According to SCGM challenge, we had to segment the GREY MATTER. Here is a snapshot of what training data and the labels look like (this is in ITKSnap a viewer for medical images, I have loaded the
site1-sc01-image.nii.gz
from the training set with the corresponding masksite1-sc01-mask-r1.nii.gz
)My understanding is that the grey matter is the red label stuff in the above image, so my trained model should take a slice (or group of slice) as input and output a mask which only highlights red rigion like stuff, however after few epochs (25 epochs) of running the code given in the example we get something like
My doubt being why is the ground truth label a white blob-like stuff, should it not be very narrow and tiny like the red structure in the above
ITKSnap
image (and hence the prediction should also be something very fine not a blob-like structure)What is being considered as ground truth in the code?
Please clarify.
Thank you so much for this amazing effort!!
The text was updated successfully, but these errors were encountered: