I am using unet for segmentation purpose, I am using “1-dice_coefficient+bce” as loss function my loss function is becoming negative and not decreasing after few epochs. How to make loss function decrease?
Code:
Output:
Thanks
I am using unet for segmentation purpose, I am using “1-dice_coefficient+bce” as loss function my loss function is becoming negative and not decreasing after few epochs. How to make loss function decrease?
Code:
Output:
Thanks
Thank you
m1 is not binary (because back propagation will work good if m1 is not binary, thats why it is called “SoftDiceLoss” not “HardDiceLoss” )
@HariSumanth9 , were you able to solve this ?. What loss function did you finally use ?.
thanks
The loss should be 1- log(dice_coefficient)+bce. Now the term will always be positive.