Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why dice smoothing only applied in denominator? #610

Open
fiskrt opened this issue Apr 14, 2023 · 0 comments
Open

Why dice smoothing only applied in denominator? #610

fiskrt opened this issue Apr 14, 2023 · 0 comments

Comments

@fiskrt
Copy link

fiskrt commented Apr 14, 2023

Hi, is there a reason why the dice smoothing is only applied in the denominator:

union = (x ** 2.0).sum(dim=1) + (target ** 2.0).sum(dim=1) + eps
loss = 1. - (2 * intersection / union)

and not like
loss = 1. - ((2 * intersection + eps) / (union + eps))

This causes all zero-input predictions to always maximize the loss even if it's completely correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant