MedicalNet icon indicating copy to clipboard operation
MedicalNet copied to clipboard

question about loss function

Open Yufengevan opened this issue 5 years ago • 1 comments

Hi, I'm confused about the loss function in the train phase.The loss function you have used is cross entropy Loss and the tensors inputted are different shape.Maybe something wrong? Meanwhile i found others have encountered the same problem that net perform well in the train phase,it's loss value is small,but dice value in the test phase maybe 0.

Yufengevan avatar Sep 11 '19 08:09 Yufengevan

Hello! Did you found the solution,I also trapped in a similar problem. The dice loss is always zero when testing it on own dataset.

Abbas009 avatar Jul 24 '20 14:07 Abbas009