YOLO Keras Face Detection
Implement Face detection, and Age and Gender Classification, and Emotion Classification.
(image from wider face dataset)Overview
Functions
- Face Detection (Darknet , Caffe)
- Age Classification (Keras)
- Gender Classification (Keras)
- Emotion Classification (Keras)
Requirements
- Keras2 + Tensorflow
- Darknet
- Caffe
- OpenCV
- Python 2.7
- Perl
Demo
Pretrained Model
Age and Gender Classification
https://gist.github.com/GilLevi/c9e99062283c719c03de
Download gender_net.caffemodel, gender_net.prototxt, age_net.caffemodel and age_net.prototxt.
Put in pretain folder.
Face Detection
Converted from https://github.com/dannyblueliu/YOLO-version-2-Face-detection
http://www.abars.biz/keras/face.prototxt
http://www.abars.biz/keras/face.caffemodel
Download face.prototxt and face.caffemodel.
Put in pretain folder.
Emotion Detection
Converted from https://github.com/oarriaga/face_classification
http://www.abars.biz/keras/emotion_miniXception.prototxt
http://www.abars.biz/keras/emotion_miniXception.caffemodel
Download emotion_miniXception.prototxt and emotion_miniXception.caffemodel.
Put in pretain folder.
Pretrained Model Demo
Here is a run using reference model .
python agegender_demo.py caffe
How to train using Keras and Darknet
Here is a training tutorial.
https://github.com/ChloeWu1/Facedetection/blob/master/TRAIN.md
Here is a experimental training tutorial.
https://github.com/ChloeWu1/Facedetection/blob/master/TRAIN_EXPERIMENTAL.md