ZhaoJ9014 / face.evoLVe

🔥🔥High-Performance Face Recognition Library on PaddlePaddle & PyTorch🔥🔥
MIT License
3.44k stars 760 forks source link

How to transform the L2-norm distance to the similarity? #33

Closed xiaosuzhang closed 5 years ago

xiaosuzhang commented 5 years ago

Sorry to interrupt again. I used np.linalg.norm to compute the distance between two faces. How should i use the l2-norm distance to get the similarity between the face images? Thanks!!

ZhaoJ9014 commented 5 years ago

Sorry to interrupt again. I used np.linalg.norm to compute the distance between two faces. How should i use the l2-norm distance to get the similarity between the face images? Thanks!!

Hi, please refer to ./util/verification.py Line 52-53. Thx.