Facenet: 2 questions about compare.py

Created on 20 Apr 2017  路  3Comments  路  Source: davidsandberg/facenet

Hello,
I have 2 questions about compare.py.
First: I know the output is an Euclidean distance matrix, but when is it safe to assume that the distance between two photos is small enough that they are the same person? For example is a distance less than 1 the same person?

Second: is there a way to instead of getting the distance matrix as output getting a confidence (percent from 0-100) as output. Does anyone know how to do this?

Thanks in advance for any help!

Most helpful comment

the paper of facenet suggests 1.1 for the threshold

All 3 comments

1st: You should experiment and come up with some value you are comfortable with, there is no universal threshold. The distance for the same person can vary greatly depending on lighting conditions, photo quality etc.

2nd: distance matrix consists of float values between 0 and 2 for each pair of pictures. You can remap them to 0-100 by multiplying values by 50.

@CrowbarKZ Thanks couldn't have wished for a better answer! I have done a bit of experimenting but I didn't realy know what the max distance was so thank you for clearing that up.

the paper of facenet suggests 1.1 for the threshold

Was this page helpful?
0 / 5 - 0 ratings

Related issues

billtiger picture billtiger  路  3Comments

kuaikuaikim picture kuaikuaikim  路  3Comments

shdyn picture shdyn  路  4Comments

patienceFromZhou picture patienceFromZhou  路  3Comments

mayank26saxena picture mayank26saxena  路  4Comments