“…Contrastive [34,6] and Triplet Losses [26] were used along with Euclidean distance to learn descriptors encoding latent space similarity. Due to the high ratio of negative pairs, most of which being easy negatives barely contributing to the loss, hard negative mining schemes have become prevalent in recent studies [5,26,6,20], sometimes combined with hard positive mining [34,4,38].…”