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

cfg.SOLVER.CENTER_LOSS_WEIGHT的用法 #221

Open
anonymoussss opened this issue Dec 1, 2022 · 0 comments
Open

cfg.SOLVER.CENTER_LOSS_WEIGHT的用法 #221

anonymoussss opened this issue Dec 1, 2022 · 0 comments

Comments

@anonymoussss
Copy link

为什么在layers/init.py的make_loss_with_center函数中给center loss乘了cfg.SOLVER.CENTER_LOSS_WEIGHT,还要在engine/trainer中的create_supervised_trainer_with_center处给center_criterion的param.grad乘个(1. / cfg.SOLVER.CENTER_LOSS_WEIGHT)?这样cfg.SOLVER.CENTER_LOSS_WEIGHT不就没有作用了吗?

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