-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to compare 2 ArcFace features? #903
Comments
you can use sum of squared error |
thank you, how accurate is it ? the formuler looks like euler distance |
U can also use Cosine Similarity. # if embedding_1.shape is (1, emb_size,), use:
embedding_1, embedding_2 = normalize(embedding_1), normalize(embedding_2)
sim = embedding_1 @ embedding_2.T -1 <= sim <= 1. |
thank you,but I am a c language programmer,I'm using mxnet c api to use ArcFace model,and I'm a python language starter,so I cant understand the meaning of below line code: what's the meaning of "@" symbol? |
Sorry, |
@pango99: how do you extract ArcFace feature vectors using your own dataset and the pretrained models? |
use MXNet C API |
@pango99
|
I use cosine similarity to calculate 2 features similarity,but I am not sure whether it is the best way, so whether cosine similarity is suite for arcface's feature comparing? Is there any other ways to do the feature comparing?
The text was updated successfully, but these errors were encountered: