Keras implementation of a CNN network for age and gender estimation. This is a Keras implementation of a CNN for estimating age and gender from a face image [1, 2]. In training, the IMDB-WIKI dataset is used. Because the face images in the UTKFace dataset is tightly cropped (there is no margin around the face region), faces should also be cropped in demo.py if weights trained by the UTKFace dataset is used. Please set the margin argument to 0 for tight cropping. You can evaluate a trained model on the APPA-REAL (validation) dataset. We pose the age regression problem as a deep classification problem followed by a softmax expected value refinement and show improvements over direct regression training of CNNs. Our proposed method, Deep EXpectation (DEX) of apparent age, first detects the face in the test image and then extracts the CNN predictions from an ensemble of 20 networks on the cropped face.

Features

  • Run the demo script (requires web cam)
  • Create training data from the IMDB-WIKI dataset
  • The trained model will be automatically downloaded to the pretrained_models directory
  • Create training data from the UTKFace dataset
  • Train models
  • Evaluation on the APPA-REAL dataset

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Age and Gender Estimation

Age and Gender Estimation Web Site

You Might Also Like
Find out just how much your login box can do for your customer | Auth0 Icon
Find out just how much your login box can do for your customer | Auth0

With over 53 social login options, you can fast-track the signup and login experience for users.

From improving customer experience through seamless sign-on to making MFA as easy as a click of a button – your login box must find the right balance between user convenience, privacy and security.
Sign up
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Age and Gender Estimation!

Additional Project Details

Programming Language

Python

Related Categories

Python Networking Software, Python Machine Learning Software

Registered

2022-08-16