keras-arcface icon indicating copy to clipboard operation
keras-arcface copied to clipboard

What is the meaning in ArcFace Loss formula?

Open vmthanh opened this issue 4 years ago • 2 comments

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

vmthanh avatar Jun 06 '20 10:06 vmthanh

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

ofathy1981 avatar Jun 26 '20 15:06 ofathy1981

@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.

BRO-HAMMER avatar Aug 30 '20 21:08 BRO-HAMMER