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

what is the purpose of weights[inds] = tot / num_in_bin and weights = weights / n if momentum=0? #25

Open
haochange opened this issue Oct 29, 2019 · 1 comment

Comments

@libuyu
Copy link
Owner

libuyu commented Dec 4, 2019

You can refer to Equation 9-11 in the paper. And note that the loss is divided by the total sample number in the end:
https://github.com/libuyu/mmdetection/blob/be06992564cc6b995b1ae86a258568e9d7b7a599/mmdet/models/losses/ghm_loss.py#L75-L76
So the weights here correspond to the harmonizing parameter \beta in Equation 10 in the paper.

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