Training Face Detection model on custom dataset using caffe

opencv version ? do you use your own protobuf or the 3rdparty one ?

neither net.cpp nor upgrade_proto.cpp are part of opencv,
so where does it come from ?