Implementing contrastive loss and triplet loss in Tensorflow
Update (2018/03/19): I wrote a blog post detailing how to implement triplet loss in TensorFlow. You need to implement yourself the contrastive loss or the triplet loss, but once you know the pairs or triplets this is quite easy. Contrastive Loss Suppose you have as input the pairs of data and their label (positive or … Read more