This aims to reproduce the loss function used in Google's FaceNet paper.
This is just an example which shows how to use the method to train a model.
I provide an online triplet sample selection usage. Just a runnable strategy. YOU MAY CHANGE IT to fit your own strategy.
Rebuild your caffe directory and makesure your python could find the added layers.