Age and Gender Classification using Convolutional Neural Network
Implementation of paper Age and Gender Classification using Convolutional Neural Network (June, 2015) using caffe.
Requisites
1. Caffe (Deep Learning Library)
2. openCV (Computer Vision Library)
Directories
1. img
Containing test images.
2. model
Containing model files(prototxt file), weight files(caffemodel file) and mean file(binaryproto file).
You can also download those files and see details from here.
3. src
Containing source files and header files. As you can notice intuitively, GenderClassification.cpp and GenderClassification.h
are for gender classification, AgeClassification.cpp and AgeClassification.h are for age classification and Main.cpp has main.
How to run
- Build and make a exe file, 'AgeAndGenderClassification.exe'
- Command is like below.
AgeAndGenderClassification.exe "GENDER_MODEL_FILE_PATH" "GENDER_WEIGHT_FILE_PATH" "AGE_MODEL_FILE_PATH" "AGE_WEIGHT_FILE_PATH" "MEAN_FILE_PATH" "TEST_IMG_PATH"