Skip to content
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

Questions about L2 Normalization #13

Open
riverHu233 opened this issue May 14, 2021 · 2 comments
Open

Questions about L2 Normalization #13

riverHu233 opened this issue May 14, 2021 · 2 comments

Comments

@riverHu233
Copy link

riverHu233 commented May 14, 2021

Hi @tamerthamoqa ,
I'm curious about L2 Normalization, which would constrain the embedding into an euclidean feature space and 图片, so the maximum distance of two features in feature space shouldn't be 2? why the threshold is from 0.0 to 4.0?
Thanks!

@riverHu233
Copy link
Author

Hi @tamerthamoqa
I thought I got it, the reason why the threshold is from 0.0 to 4.0 is that 2 different features belong to different feature space, and the minimum distances of these two features is 4.0, bigger than that , the features can seperately for sure. Thanks for the project!

@tamerthamoqa
Copy link
Owner

Hello riverHu233,

My interpretation might be incorrect, but according to the facenet paper (description of figure 1) it implies that the squared l2-norm space might be [0, 4] though please keep in mind I am not sure about this since I haven't looked too deeply into this matter. There are discussion threads about this topic in the David Sandberg 'facenet' github repository but I haven't found a clear answer, at least, from what I remember.

From what I have seen, all pytorch implementations of facenet on github use the same threshold range so that is the main reason why I went with that range, but to be honest, I need to look into it to get a clearer understanding myself.

@riverHu233 riverHu233 reopened this May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants