The repo linked above by @Naveen_Kumar includes both face detection and recognition (as do many facial recognition libraries). It uses a pretrained MTCNN network for the detection.
Disclaimer: https://github.com/timesler/facenet-pytorch 399 is my repo