luckycallor / InsightFace-tensorflow

Tensoflow implementation of InsightFace (ArcFace: Additive Angular Margin Loss for Deep Face Recognition).
248 stars 112 forks source link

distance_metric == 1,evaluate.py, when to choose 'distance_metric == 1'? #9

Open Wxsang opened 5 years ago

Wxsang commented 5 years ago

hi, luckycallor, thanks for your code! sorry, i dont read the paper. evaluate() in evaluate.py

thresholds = np.arange(0, 4, 0.01)
if distance_metric == 1:
    thresholdes = np.arange(0, 1, 0.0025)

why 'distance_metric' ==1?

luckycallor commented 5 years ago

1 means cosine distance, 0 means euclidean distance. You can use either to measure whether two faces are the same person.

luckycallor commented 5 years ago

@Wxsang