nnUNet icon indicating copy to clipboard operation
nnUNet copied to clipboard

Question about the dice during training.

Open RenXiaoman opened this issue 4 months ago • 2 comments

Thanks for your excellent job! I use the nnU-Net framework from v1 to v2, but I did't understand the dice during training in one epoch. After one epoch , console will print Pseudo dice,.Could you explain what the Pseudo Dice metric represents and how it differs from standard Dice coefficient?

RenXiaoman avatar Aug 07 '25 07:08 RenXiaoman

This issue talks about it slightly: https://github.com/MIC-DKFZ/nnUNet/issues/2234#issue-2320469317

The paper also explains it: "For all other networks we interpret the samples in the batch as a pseudo-volume and compute the dice loss over all voxels in the batch."

vmiller987 avatar Aug 27 '25 16:08 vmiller987

Yes - so the pseudo dice is only calculated on 50 random foreground patches from the validation cases and not in the original image spacing but the training target spacing

constantinulrich avatar Oct 16 '25 08:10 constantinulrich