triplet-caffe triplet loss function for caffe (Python) Implementation of the triplet loss function in the paper FaceNet: A Unified Embedding for Face Recognition and Clustering Semi-hard mining was implemented.