Python: Advanced Guide to Artificial Intelligence
by Giuseppe Bonaccorso, Armando Fandango, Rajalingappaa Shanmugamani
Triplet loss
The triplet loss learns the score vectors for the images. The score vectors of face descriptors can be used to verify the faces in Euclidean space. The triplet loss is similar to metric learning in the sense of learning a projection so that the inputs can be distinguished. These projections or descriptors or score vectors are a compact representation, hence can be considered as a dimensionality reduction technique. A triplet consists of an anchor, and positive and negative faces. An anchor can be any face, and positive faces are the images of the same person. The negative image may come from another person. It's obvious that there will be a lot of negative faces for a given anchor.
By selecting negatives that are currently closer ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access