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 meaning in ArcFace Loss formula? #19

Open
vmthanh opened this issue Jun 6, 2020 · 2 comments
Open

What is the meaning in ArcFace Loss formula? #19

vmthanh opened this issue Jun 6, 2020 · 2 comments

Comments

@vmthanh
Copy link

vmthanh commented Jun 6, 2020

Hi.
Thanks for your great implementation. Im trying to understand the mathematics behind the ArcFace in your implementation.
But when I read to this line the metrics.py
logits = logits * (1 - y) + target_logits * y
I don't understand the link behind this line and the original paper. The code looks like the cross entropy loss before going to the Softmax function, but if if the cross entropy, should it have the log inside? AIm not sure about this part very much. Can you help me to understand it?

Many thanks

@ofathy1981
Copy link

can you please help me using this project with face dataset as input

@BRO-HAMMER
Copy link

@vmthanh I believe that line is assigning the value of cosine distance to the logits of the incorrect classes and cosine+margin to the logits of the correct one.

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

3 participants