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

Question: distance in triplet loss #12

Open
mella30 opened this issue Jul 29, 2024 · 0 comments
Open

Question: distance in triplet loss #12

mella30 opened this issue Jul 29, 2024 · 0 comments

Comments

@mella30
Copy link

mella30 commented Jul 29, 2024

Hi @lingorX ,
I'm adapting your loss to my framework, and I'm wondering about the distance measure used in the tree triplet loss. In the paper you wrote, that you used the cosine distance but in the code, I only find this snippet:

distance[:,0:1] = 1-(feats_anchor*feats_pos).sum(1, True)
Which one did you use to produce the reported results? Did you have any insights on the choice of the distance measure?

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