Issue with visualization of output while excluding the background in the loss function #7566
Replies: 1 comment 1 reply
-
Hi @NastaranVB, Hope it helps, thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @NastaranVB, Hope it helps, thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,

I am doing multi class 3D segmentation which contains 3 classes including background. I have used Network, Loss and Metric from Monai. When excluding the background in the loss function and defining it as "DiceLoss(include_background=False, to_onehot_y=True, softmax=True)," upon visualizing the prediction, the output (prediction mask) displays an image as attached, which is incorrect and should only depict the segmented portion. Could you please help me with the issue?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions