Provide multi-class 2d segmentation tutorial #2651
-
Hello, I am trying to perform 2D multiclass segmentation on my own data and I would like to know how to preprocess data with monai and how to configure other stuff. It would be nice to have working example of this multiclass segmentation or at least some steps to reproduce. Actually I am trying to reconfigure your 2D segmentation tutorial code to my problem, but somehow I am always getting bad results so I am wondering what steps are required for multiclass segmentation. Anyway here is my train method (original images shape -> 512,512 and same for mask). I have 4 classes(background included). I am converting masks to one hot endocoded format as you can see, using softmax as activation. But I am still confused if I am missing something or if my loss, model, metric configuration is ok. Thanks in advance `
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @hreso110100 , Thanks for your interest and experiments with MONAI. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Thank for tip @Nic-Ma I will check it out. I also have one more question regarding sliding_window_inference ... is it required in image segmentation or I can omit it ? I am not sure how to use it properly or what is meaning of this method thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @hreso110100 , You can refer to this tutorial for more details of Thanks. |
Beta Was this translation helpful? Give feedback.
Hi @hreso110100 ,
You can refer to this tutorial for more details of
sliding window
:https://docs.monai.io/en/latest/highlights.html#evaluation.
Thanks.