-
Notifications
You must be signed in to change notification settings - Fork 110
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
np.square(knn.kneighbors(clsts, 2)[1]) Should be changed? #84
Comments
Thanks for spotting this! Looks like it should indeed be changed to that; would you mind submitting a PR? |
Sorry, my understanding of NetVlad is not deep enough. For example, I don't understand why the value of self.alpha should be set in this way in your program? Line 53 in 8f7c37b
|
|
pytorch-NetVlad/netvlad.py
Line 51 in 8f7c37b
Should this code be changed to this? ":
dsSq = np.square(knn.kneighbors(clsts, 2)[0])
knn.kneighbors(clsts, 2) returns two ndarrays, the first ndarray is the distance value, the second is the index value.
What we need here is the distance, not the index, right?
The text was updated successfully, but these errors were encountered: