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

I think there is a wrong in FocalLoss #1

Open
taylover-pei opened this issue Aug 13, 2019 · 2 comments
Open

I think there is a wrong in FocalLoss #1

taylover-pei opened this issue Aug 13, 2019 · 2 comments

Comments

@taylover-pei
Copy link

The following code:
image
logpt is a scale not a tensor, right?
If the batchsize is greater than 1, I think it is wrong, am I right?

@ghost
Copy link

ghost commented Aug 29, 2019

I also think this implementation is wrong for the same reason taylover said

@PeterPanUnderhill
Copy link

If you set reduction as 'none', then it returns a tensor

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

2 participants