SoftDiceclDiceLoss
and SoftclDiceLoss
are unclear in their usage
#7590
Replies: 1 comment
-
Hi @MathijsdeBoer, Unstable loss values, especially when using You could also try using MONAI's GeneralizedDiceLoss which is a proposed modification of the Dice Loss to deal with the issue of class imbalance. In GeneralizedDiceLoss, weights are introduced considering the inverse of each class's volume which results in a more balanced loss.
|
Beta Was this translation helpful? Give feedback.
-
I'm doing some 2-class intracranial vessel segmentation experimentation with MonaiLabel. Because the default
DiceCELoss
loss function is not providing satisfactory results, I've been trying to getSoftDiceclDiceLoss
to work. Unfortunately, the loss values are all over the place, jumping from 4 to -7, hovering around 1.0 for a little while and then flying around again.I've gone through the available documentation, which is a little sparse, and have also tried gaining some insight from the unit test, which only tests the
torch.ones
case.Has anyone successfully used either of these loss functions in their projects?
Beta Was this translation helpful? Give feedback.
All reactions