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

Dice, can I use your Dice expression with probabilities instead of thresholded values? #60

Open
ManuelZ opened this issue Jan 24, 2024 · 0 comments

Comments

@ManuelZ
Copy link

ManuelZ commented Jan 24, 2024

TLDR: Can I use the forward expression (with squares in the denominator) with probabilities instead of thresholded values?

Hi, I saw in your thesis, page 73, that the Dice coefficient has two variants:

image

On page 74, you say:

We use the first formulation of dice in this work, exhibiting the squares of pi and gi at the denominator.

But I don't see those squared pi and gi in the code:

self.union[i]=(np.sum(CurrResult) + np.sum(CurrGT))

I guess that's because earlier you thresholded the values to be binary. So the squares don't matter for the calculation of the loss, but do matter for the formulation of the expression for the backward pass.

My question is, can I use the forward expression (with squares in the denominator) with probabilities instead of thresholded values?

Thanks,
Manuel

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