Questions tagged [triplet-loss-function]
The triplet-loss-function tag has no usage guidance.
8
questions
0
votes
1
answer
13
views
What architecture is used for deep quadruplet network for person re-identification
I am trying to implement the paper Beyond triplet loss: a deep quadruplet network for person re-identification. In the paper, they provide a figure (attached below) containing the network architecture,...
0
votes
0
answers
58
views
How to fix the embedding gauge in a BERT-like model?
I have a pre-trained BERT model from Huggingface, which I tune to categorize short texts (like tweets or slightly longer) into several thousand categories using triplet loss.
As I understand, if I ...
0
votes
1
answer
98
views
Why is the time complexity of the Triplet Loss $O(N^3)$
The triplet loss function uses an anchor, positive, and negative examples. If $N$ are the number of examples in the training set with $C$ classes, then I think that the time complexity should be $O(...
3
votes
1
answer
4k
views
What is the difference between the triplet loss and the contrastive loss?
What is the difference between the triplet loss and the contrastive loss?
They look same to me. I don't understand the nuances between the two. I have the following queries:
When to use what?
What ...
1
vote
2
answers
402
views
Why does triplet loss allow to learn a ranking whereas contrastive loss only allows to learn similarity?
I am looking at this lecture, which states (link to exact time):
What the triplet loss allows us in contrast to the contrastive loss is
that we can learn a ranking. So it's not only about similarity, ...
0
votes
1
answer
144
views
Does this modified version of the triplet loss function introduced with SBERT that uses the cosine similarity make sense?
I am working on a modified version of the triplet loss function introduced with SBERT, where instead of the Euclidean distance we use the cosine similarity. The formula to minimize is ...
1
vote
2
answers
303
views
Triplet Loss- Three forward pass and one backward pass(Propagation)
I am trying to build a CNN model based on the concepts of Contrastive Learning. In specific based on Triplet loss.
I have 5 different class labels and I create triplets such that in a triplet, two ...
0
votes
1
answer
594
views
How to retrain a Facenet model with the triplet loss function?
I want to calculate the similarity or distance of two faces. I'm using Python.
I have read and done what this tutorial says. However, the result is not good (the similarity of same faces and ...