HiLab-git / SSL4MIS

Semi Supervised Learning for Medical Image Segmentation, a collection of literature reviews and code implementations.
MIT License
2.13k stars 381 forks source link

About Dice loss #57

Closed Roll77-luo closed 2 years ago

Roll77-luo commented 2 years ago

Why is Dice working out a negative number during training?The output shape is [B,2,W,H], and Label shape is [B,1,W,H], After using unsqueeze, is [B,1,1,W,H]. I printed the numerator larger than the base,Why is that?