Coder Social home page Coder Social logo

vibalcam / agesexdetector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from osllogon/agegenderdetector

0.0 1.0 0.0 51.48 MB

Dashboard for a Deep Learning model to predict the age and gender using face images from the UTKFace dataset

Python 78.08% Jupyter Notebook 21.92%
deep-learning utkface

agesexdetector's Introduction

Age-Sex Detector

Deep Learning (Convolutional Neural Network) model to predict the age and sex from face images (UTKFace dataset), achieving 0.92 test sex accuracy and 8.68 test age RMSE

Data

UTKFace dataset

UTKFace dataset Kaggle

This dataset contains over 20,000 face images with annotations of age, sex, and ethnicity. The images cover large variation in pose, facial expression, illumination, occlusion, resolution, etc.

Data Explanation

If a photo is called 34_0_0_201701171712010149082.jpg.chip.jpg, it means that the age of the individual is 34 and his sex is male. That is, the photo names follow the following scheme age_sex_race_relevant_data.jpg.chip.jpg.

Sex being 0 for male and 1 for female.

Model Full

We have used Convolutional Neural Networks (CNN) to predict the age and sex of the full input image.

We have obtained the following metrics:

  • Validation:
    • Sex accuracy: 0.869
    • Age MSE: 135.65
    • Age MAE: 8.54
  • Test:
    • Sex accuracy: 0.878
    • Age MSE: 140.35
    • Age MAE: 8.68

Model Cropped

We have used Convolutional Neural Networks (CNN) to predict the age and sex of the cropped input image.

We have obtained the following metrics:

  • Validation:
    • Sex accuracy: 0.905
    • Age MSE: 78.956
  • Test:
    • Sex accuracy: 0.915
    • Age MSE: 75.28

Dash images

Prediction tool (the age has an error margin): prediction

Saliency maps: saliency_maps

Model metrics (best model selected): metrics

Steps to run web app

From the main project folder (AgeSexDetector/) run the following command:

pip install -r requirements.txt

Then, from one of the main folders (AgeSexDetector/full/ or AgeSexDetector/cropped/) run the following command:

python -m dashboard.dashboard

agesexdetector's People

Contributors

vibalcam avatar osllogon avatar

Watchers

James Cloos 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.