Code Monkey home page Code Monkey logo

ai-project's Introduction

Age and Gender Estimation

This is a Keras implementation of a CNN for estimating age and gender from a face image . In training, the IMDB-WIKI dataset is used.

Dependencies

  • Python 3
  • Keras2.0+
  • scipy, numpy, Pandas, tqdm
  • OpenCV

Tested on:

  • CPU ,GPU:k80 (colab)
  • Python 3.6.0, Keras 2.0.2, Tensorflow 1.0.0

Download the dataset

The dataset is downloaded and extracted to the data directory.

!wget https://data.vision.ee.ethz.ch/cvl/rrothe/imdb-wiki/static/imdb_crop.tar

Train network

Train the network using the training data created above.

Plot training curves from history file

python3 plot_history.py --input models/history_16_8.h5 
Results with data

The val_loss was 4.7

Network architecture

Here the Wide Residual Network (WideResNet) is trained from scratch. The implementation of the WideResNet; two classification layers (for age and gender estimation) are added on the top of the WideResNet.

While age and gender are independently estimated by different two CNNs ,they are simultaneously estimated using a single CNN.

Results

Trained on imdb, tested on imdb

Refrences

https://www.openu.ac.il/home/hassner/projects/cnn_agegender

ai-project's People

Contributors

charvi-077 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.