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

Question on multiplying constant to sphereR_H, sphereR_N and sphereR_N #18

Open
lizhenstat opened this issue Apr 14, 2023 · 2 comments
Open

Comments

@lizhenstat
Copy link

Hi, thanks for sharing the code of your great work on SphereFace Revived. I have a related question:
when using the three proposed normalization methods, why do you scaling a constant on the cross entropy loss
in sphereR_N,sphereR_H and sphereR_S.

Any help would be appreciated, thanks!

@ydwen
Copy link
Owner

ydwen commented Apr 14, 2023

lw is loss weight, controlling the loss scale.

@lizhenstat
Copy link
Author

thanks a lot, I found an interesting answer why scaling loss does affect the training result.
It seems that scaling the loss under SGD and no regularization equals scaling the learning rate.

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