Skip to content

This repository contains source code for an application used to predict Gender and Age of a Human.

Notifications You must be signed in to change notification settings

muskanmi/Age-and-Gender-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Age and Gender Prediction

Age and Gender prediction is a simple flask application which can be used to recognize the Gender of the human being present in an image as well as his/her age.

Instructions

Training of the Model:

  1. You can see the code for training the model in this notebook.

  2. Before running the code for training the model, you need to have the dataset downloaded and placed inside the training folder.
    You can download the dataset from Kaggle present here.

  3. This repository also consists of already trained weights for this model which you can find here.

Running the application:

  1. Get the source code on your pc via git.
  git clone https://github.com/muskanmi/Age-and-Gender-Prediction.git
  1. Create a virtual environment to install the required dependencies of the application.
  virtualenv venv
  1. Activate the virtual environment (You have to activate it every time you are working on project).
  For mac users:

    source venv/bin/activate  

  For windows users:

    .\venv\Scripts\activate

  For Linux users:

    source venv/bin/activate
  1. Now, install python dependencies.
  pip install -r requirements.txt
  1. Now, navigate to the src directory (containing the app.py file).

  2. Run following command:

  python app.py
  1. Application is ready for use. You can run it at http://localhost:80/.

Releases

No releases published

Packages

No packages published