All Projects → CVxTz → face_age_gender

CVxTz / face_age_gender

Licence: MIT license
Can we predict the age and gender of someone given a picture of their face ?

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to face age gender

pytorch-DEX
Pytorch implementation of DEX: Deep EXpectation of apparent age from a single image
Stars: ✭ 61 (+52.5%)
Mutual labels:  age-prediction, gender-prediction
Imagedetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.
Stars: ✭ 286 (+615%)
Mutual labels:  vision, face
ImageCropper
✂️ Detect and crop faces, barcodes, texts or rectangle in image with iOS 11 Vision (iOS 10 Core Image) api.(图片裁剪:支持人脸、二维码/条形码、文本、方框)
Stars: ✭ 17 (-57.5%)
Mutual labels:  vision, face
Facecropper
✂️ Crop faces, inside of your image, with iOS 11 Vision api.
Stars: ✭ 479 (+1097.5%)
Mutual labels:  vision, face
PSCognitiveService
Powershell module to access Microsoft Azure Machine learning RESTful API's or Microsoft cognitive services
Stars: ✭ 46 (+15%)
Mutual labels:  vision, face
Facelandmarksdetection
Finds facial features such as face contour, eyes, mouth and nose in an image.
Stars: ✭ 130 (+225%)
Mutual labels:  vision, face
FASSEG-repository
Datasets for multi-class and multi-pose face segmentation
Stars: ✭ 66 (+65%)
Mutual labels:  face
age-gender-estimation
A Lightweight and Efficient Method for Face Age and Gender Estimation Implemented in MXNet
Stars: ✭ 61 (+52.5%)
Mutual labels:  gender-prediction
realtime-2D-to-3D-faces
Reconstructing real-time 3D faces from 2D images using deep learning.
Stars: ✭ 92 (+130%)
Mutual labels:  face
morghulis
No description or website provided.
Stars: ✭ 18 (-55%)
Mutual labels:  face
eccv16 attr2img
Torch Implemention of ECCV'16 paper: Attribute2Image
Stars: ✭ 93 (+132.5%)
Mutual labels:  face
facematch
Facematch is a tool to verifies if two photos contain the same person.
Stars: ✭ 62 (+55%)
Mutual labels:  face
FaceNet-IOT
IOT implementation for FaceNet project by David Sandberg https://github.com/davidsandberg/facenet
Stars: ✭ 18 (-55%)
Mutual labels:  face
Spatial-Subspace-Rotation
(Paper) A Novel Algorithm for Remote Photoplethysmography: Spatial Subspace Rotation
Stars: ✭ 19 (-52.5%)
Mutual labels:  face
FacialEmotionRecognition
Using Extended Cohn-Kanade AU-Coded Facial Expression Database to classify basic human facial emotion expressions using ann
Stars: ✭ 28 (-30%)
Mutual labels:  face
EfficientMORL
EfficientMORL (ICML'21)
Stars: ✭ 22 (-45%)
Mutual labels:  vision
CustomVisionMicrosoftToCoreMLDemoApp
This app recognises 3 hand signs - fist, high five and victory hand [ rock, paper, scissors basically :) ] with live feed camera. It uses a HandSigns.mlmodel which has been trained using Custom Vision from Microsoft.
Stars: ✭ 25 (-37.5%)
Mutual labels:  vision
stereo.vision
planar fitting computation using stereo vision techniques
Stars: ✭ 19 (-52.5%)
Mutual labels:  vision
Denoised-Smoothing-TF
Minimal implementation of Denoised Smoothing (https://arxiv.org/abs/2003.01908) in TensorFlow.
Stars: ✭ 19 (-52.5%)
Mutual labels:  vision
CNN-GoogLeNet
👁 Vision : Model 4: GoogLeNet : Image Classification
Stars: ✭ 17 (-57.5%)
Mutual labels:  vision

face_age_gender

Data : https://www.openu.ac.il/home/hassner/Adience/data.html

Description of the approach : https://medium.com/@CVxTz/predicting-apparent-age-and-gender-from-face-picture-keras-tensorflow-a99413d8fd5e

requirements : Keras, tensorflow, numpy, PIL, cv2

Predicting apparent Age and Gender from face picture : Keras + Tensorflow

Source : https://www.openu.ac.il/home/hassner/Adience/data.html

Predicting the apparent age and gender from a picture is a very interesting problem from a technical point of view but can also be very useful when applied to better understand consumer segments or a user base for example. It can be used to infer the age or gender of a user and use this information to make personalized products and experiences for each user.

In this post we will train a model to predict those attributes given a face picture.

Data :

We use data from https://www.openu.ac.il/home/hassner/Adience/data.html which is a dataset of face photos in the wild that are labeled into 8 age groups (0–2, 4–6, 8–13, 15–20, 25–32, 38–43, 48–53, 60-) and into 2 gender classes.
There are around 26,580 images (with missing labels in some cases) that are pre-split into 5 folds.

Existing results :

As this dataset is usually used as a benchmark for this type of tasks in many research papers, I was able to find many prior accuracy results for apparent age and gender prediction =>

[1] https://www.openu.ac.il/home/hassner/Adience/EidingerEnbarHassner_tifs.pdf
Gender : 76.1±0.9
Age : 45.1±2.6

[2] https://www.openu.ac.il/home/hassner/projects/cnn_agegender/CNN_AgeGenderEstimation.pdf
Gender : 86.8±1.4
Age : 50.7±5.1

[3] https://arxiv.org/pdf/1702.04280.pdf
Gender : 91
Age : 61.3±3.7

Preprocessing :

Faces are cropped and aligned using this tool : https://www.openu.ac.il/home/hassner/Adience/code.html#inplanealign

Data augmentation :

We use Random shift, Zoom, Horizontal Flip as a form of data augmentation to create synthetic examples used during training to improve the generalization of the model.

Model :

We use a Resnet architecture pre-trained on ImageNet :

Resnet ( Deep Residual Networks ) are an architecture that reduces the under-fitting and optimization issues that occur in deep neural networks.

Residual Block : https://arxiv.org/pdf/1512.03385.pdf

Results :

We train the model 3 times for each fold and average the predictions and get the following results :
Gender : 89.4±1.4
Age : 57.1±5.3
Those results are better than [1] and [2] probably because of the bagging and the pretrained weights but worse than [3] probably because Sighthound Inc used a bigger and internal Faces dataset for pretraining.

Code to reproduce the results can be found at : https://github.com/CVxTz/face_age_gender

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].