-
Hi, When I run my script, using compute_meandice, I get a different result depending on which way round I enter the data. Concretely: Inputting [expert1-data] as the y_pred and [expert2-data] as the y results in a mean dice score of 0.88205 If instead I input [expert2-data] as the y_pred and [expert1-data] as the y results in a mean dice score of 0.880517 The difference is small, but I'd still like to get to the bottom of it! I've ensured I'm applying the same pre-processing transformations to both. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Could you please help take a look at this question? You guys are expert researchers on DL training. Thanks. |
Beta Was this translation helpful? Give feedback.
-
currently the class-wise Dice metric is set to 0 when there's no foreground in the ground truth label: https://github.com/Project-MONAI/MONAI/blob/master/monai/metrics/meandice.py#L127 this logic might make y and y_pred not interchangeable |
Beta Was this translation helpful? Give feedback.
currently the class-wise Dice metric is set to 0 when there's no foreground in the ground truth label: https://github.com/Project-MONAI/MONAI/blob/master/monai/metrics/meandice.py#L127 this logic might make y and y_pred not interchangeable