-
Notifications
You must be signed in to change notification settings - Fork 52
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
Question about Varifocal loss #8
Comments
This is the initial version of implementation of VFL and I forgot to refine it. |
You means According to paper, the negtive weight should be |
Hi, |
Ohhh! Thanks, I understand it now. |
|
Hi @feiyuhuahuo,
|
In the paper, the negtive weight of BCE loss is alpha*p^gamma. However, in varifocal_loss.py, the loss is implemented by:
focal_weight = target * (target > 0.0).float() +
alpha * (pred_sigmoid - target).abs().pow(gamma) *
(target <= 0.0).float()
The negtive weight is alpha(p-q)^gamma*, why?
The text was updated successfully, but these errors were encountered: