How to train the DNN for face recognition by cuDNN and CAFFE

Hi All.
I am implementing the face recognition DNN by cuDNN and CAFFE.
mnistCUDNN is a good sample to refer for this project.
So, It seems to be used as a classifier for face recognition.
But It’s strange to implement the trainer for me using CAFFE and cuDNN.
Have you ever made this project or would you lead me to do this.
Thanks in advance.