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

Online Triplet Loss calculation #77

Open
ukunliu opened this issue Oct 25, 2023 · 0 comments
Open

Online Triplet Loss calculation #77

ukunliu opened this issue Oct 25, 2023 · 0 comments

Comments

@ukunliu
Copy link

ukunliu commented Oct 25, 2023

Hi,

I noticed in the triplet selection process, the distance matrix is calculated, which is square L2 norm between embedding vectors. Based on the distance matrix, the triplets are selected and used to calculate the OnlineTripletLoss (margin loss).

While during the calculation of margin loss, it seems the L2 norm is calculated again as we did during triplet selection and but averaged. So I guess it is possible to pass the loss values during triplet selection procedure to the OnlineTripletLoss directly?

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