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

multibox loss #27

Open
XDUSPONGE opened this issue Mar 5, 2020 · 0 comments
Open

multibox loss #27

XDUSPONGE opened this issue Mar 5, 2020 · 0 comments

Comments

@XDUSPONGE
Copy link

Thanks for your code
in the paper

  • the cls loss is normalized by the number of positive and negative anchors
  • the reg term is normalized by the number of positive anchors.
    so may be
    image
    it should be changed
M = num_pos.data.sum().float() + num_neg.data.sum().float()
loss_c /= N

also in the paper L =\lambda * L_{cls} + L_{reg}
in the code

loss_l, loss_c = criterion(out, targets)
loss = loss_l + loss_c

may be the two place should be modified

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