Skip to content
Snippets Groups Projects

ArcFace/SphereFace Loss

Merged Tiago de Freitas Pereira requested to merge arcface into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -201,7 +201,7 @@ class ModifiedLogitsHead(tf.keras.layers.Layer):
class AngularHead(tf.keras.layers.Layer):
"""
Implements :math:`\frac{x_i}{||x_i||}\frac{W}{||W||}`.
Implements :math:`\\frac{x_i}{||x_i||}\\frac{W}{||W||}`.
This is the base operation for equations (3) and (4) of the paper
`ArcFace: Additive Angular Margin Loss for Deep Face Recognition <https://arxiv.org/abs/1801.07698>`_
Loading