Exploring triplet loss

In this section, we shall look at the finer details of the cost function with a triplet loss. We will train network weights using the triplet cost function or the triplet loss. The idea was introduced in the paper by Schroff in 2015, FaceNet: A unified embedding for face recognition and clusteringWe shall also explore the areas to choose the triplet so that our network will learn to achieve really high accuracy. 

We begin by choosing the base or anchor image, which will be used as a sample for other comparts. The base image is as follows: 

We shall now select a different image that represents the same person; this ...

Get Hands-On Java Deep Learning for Computer Vision now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.