You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In src/membrain_seg/segmentation/training/metric_utils.py, I found when ignore_label is set to None, the function returns a nan. I examined the code and found that there may be a bug in your function masked_accuracy:
Thanks a lot for pointing out! I never used it without setting the ignore label, so this didn't appear to me.
But you're absolutely correct. I fixed the bug in the latest PR (#45).
In
src/membrain_seg/segmentation/training/metric_utils.py
, I found whenignore_label
is set toNone
, the function returns anan
. I examined the code and found that there may be a bug in your functionmasked_accuracy
:I think it should be
torch.zeros_like(y_gt).bool()
instead oftorch.ones_like(y_gt).bool()
.Looking forward to your reply and hope it can be fixed soon~
The text was updated successfully, but these errors were encountered: