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

what does no_residual_list for? #58

Open
Lowtec-Sam opened this issue Dec 26, 2017 · 0 comments
Open

what does no_residual_list for? #58

Lowtec-Sam opened this issue Dec 26, 2017 · 0 comments

Comments

@Lowtec-Sam
Copy link

Forward:
if aps[i][1] >= ans[i][0]:
self.no_residual_list.append(i)
Backward:
for triplet-pair in no_residual_list, gradient is set to zeros

Does "aps[i][1] >= ans[i][0]" mean the distance between anchor and positive sample is larger than the distance between anchor and negative sample? If so, why drop these hard pairs (larger loss pair)?

Another question, u use the sort the positive and negative samples according to the distance between them and anchor, but all these pairs are sent to tripletloss layer, what does this for?

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

1 participant