yule-li / CosFace

Tensorflow implementation for paper CosFace: Large Margin Cosine Loss for Deep Face Recognition
286 stars 98 forks source link

cosine similarity or euclidean distance for evaluation? #4

Closed Bsting closed 6 years ago

Bsting commented 6 years ago

hi, in the paper it stated that "In the testing phase, the testing data is fed into CosFace to extract face features which are later used to compute the cosine similarity score to perform face verification and identification", but it seems like you are using euclidean distance in the test.py. Is there anything i got it wrong?

yule-li commented 6 years ago

Cosine similarity is used. I normalize the feature here in test.py