Closed minhduc0711 closed 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.
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.