Deep Learning, Machine Learning, Neural Networks, Computer Vision, Artificial Intelligence.
the triplet loss function. Consider a triplet — [anchor, positive, negative] (see image). Triplet loss is defined w.r.t these three images as follows — Define distance metric d = L2 norm Compute the distance between embeddings of anchor image and the positive image = d(a, p) Compute the distance