Machine Learning.
idea → we can have the triplet loss → where each pair of the image is given → this is good since there is an update of the distance. Every epoch → but it will take time to find the harder update values. Triplet Loss and Online Triplet Mining in TensorFlow In face recognition, triplet loss is used