rezazad68 / BCDU-Net

BCDU-Net : Medical Image Segmentation
712 stars 264 forks source link

Concern about metrics #19

Closed minhduc0711 closed 4 years ago

minhduc0711 commented 4 years ago

I noticed you are flattening the whole batch like this.

This way, a pair of masks where the Dice Coefficient is close to 0 like below won't be penalized heavily, as the metric is being averaged over pixels, not over images.

image