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

Focal loss is different from the paper. #1

Open
EthanZhangYi opened this issue Aug 14, 2017 · 1 comment
Open

Focal loss is different from the paper. #1

EthanZhangYi opened this issue Aug 14, 2017 · 1 comment

Comments

@EthanZhangYi
Copy link

Hi,

loss = loss * (1 - log_input) ** self.gamma # focal loss

Here seems should be (1 - exp(log_input)), not (1 - log_input)

@DingKe
Copy link
Owner

DingKe commented Aug 14, 2017

Thanks for pointing out. Have corrected.

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