/face-detector

A simple face detector

Primary LanguagePython

Face Detector using CNN

A simple face detector (MD) trained from convolutional neural network (CNN). Accuracy is as high as 98%, the trained model can distinguish human faces from animal faces without having any animal faces in the training set.

Prerequisites

Usage

Run ./run.sh to learn a face detector

Run python3 cnn_gender.py to train a gender model

Details

  • UTKFace Dataset was used to train face images
  • Random scenery pictures were used to train non-face images
  • An independent LHI-Animal-Faces dataset was used as part of the test set
  • Animal faces are added to the validation set to see if the trained model misclassify them as human faces
  • In the test set, non-face images are more than images with faces to simulate a actual picture where most of the windows do no contain a face

Note that the sample/test division is random, so the accuracy could fluctuate