Closed BJQ123456 closed 1 year ago
Generally, Dice score is a value ranges from [0, 1] to measure the segmentation accuracy, so it is positive. However, for training, the loss should be minimized, so we turn the dice to negative to obtain the Dice loss. By minimizing this loss, the Dice score can be maximized.
Thank you very much for your reply, but as far as I know, DC loss is 1-dc, should this be changed here?Moreover, the loss will become negative due to the increase of weight after I change it to 1-dc. May I ask why this is? Looking forward to your reply very much,Another one is do you scale the number of layers directly when converting nii to npy? Will this make a difference?
Hello,
Could you please tell me why the dc here is multiplied by negative one during training, which will result in a negative loss function? Thank you for your answer