CosFace_pytorch icon indicating copy to clipboard operation
CosFace_pytorch copied to clipboard

About the title

Open LeeBC2298 opened this issue 4 years ago • 1 comments

I think this project is about 'SphereFace', not 'CosFace'. CosFace use LMCL loss function, not A-softmax loss.

LeeBC2298 avatar Jun 22 '20 12:06 LeeBC2298

@LeeBC2298 I think it's indeed cosface. The output of the classifier (https://github.com/MuggleWang/CosFace_pytorch/blob/master/layer.py#L43) is the cosine similarity with margin. And directly optimizing the cosine similarity with cross entropy loss is equal to LMCL (Eq. 4 in the paper).

fuenwang avatar Nov 30 '21 08:11 fuenwang