GithubHelp home page GithubHelp logo

rahul1582 / emotion-detector Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 17.19 MB

An Emotion Detector Using CNN

Home Page: https://nbviewer.jupyter.org/github/Rahul1582/Emotion-Detector/blob/master/src/emotions.py

License: Apache License 2.0

Python 100.00%
emotion-detector cnn opencv data-augmentation fer2013

emotion-detector's Introduction

Emotion-detection Using CNN

This project aims to classify the emotion on a person's face into one of seven categories, using deep convolutional neural networks. The model is trained on the FER-2013 dataset.

Dependencies

To install the required packages, run pip install -r requirements.txt.

Technologies Used

1.Python

2.Convolution Neural Network(CNN)

3.Open CV

4.Data Augmentation

To Run

First, clone the repository and enter the folder src

Download the FER-2013 dataset from here and unzip it inside the src folder. This will create the folder data.

I had added the dataset into gitignore as it is a very big file.

If you want to train this model, use:
cd src python emotions.py --run train

If you want to view the predictions without training again, you can download the pre-trained model from here.

If you want to use the web camera or give input as a video to detect emotions just run- cd src python emotions.py --run test with USE_WEBCAM as True or False

If you want to detect emotions in a picture just run- cd src python emotions.py --run picture

With a simple 4-layer CNN, the test accuracy reached 63% in 50 epochs.

Data Preparation (optional)

The original FER2013 dataset in Kaggle is available as a single csv file.

Demo

Model Summary--



emotion-detector's People

Contributors

rahul1582 avatar

Watchers

 avatar  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.