Skip to content

What is the best way to compare vectors from imagenet? Is euclidean distance a good choice? #819

Answered by pospielov
martinenkoEduard asked this question in Q&A
Discussion options

You must be logged in to vote

we use Euclidean distance because this is what is used by default in the open-source facial recognition libraries we use. It guarantees that the accuracy is the same as in the original library.
There is another algorithm - Cosine similarity. Most libraries allow to use it as well. But it will make CompreFace more complex to implement and use. So we didn't add it.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by martinenkoEduard
Comment options

You must be logged in to vote
1 reply
@pospielov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants