GithubHelp home page GithubHelp logo

ayumu-j-s / facial-expression-detection Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 27.04 MB

A program that detects the emotion of a person (or people) from their facial expressions by using a Convolutional Neural Network.

Python 100.00%

facial-expression-detection's Introduction

Facial-Expression-Detection

This program detects the emotion of a person (or people) from their facial expression.
In order to run the detection program, run main.py in src directory without any parameters. The program will ask you to choose the display mode or train mode. If you choose the display mode, the program will detects your face and emotion according to your facial expression. On the other hand, if you choose the train mode, then you will be able to train the model. Just make sure that you specify the right directories for training when you are running the program in the train mode. You can do this by changing the variable train_dir and val_dir.

Dependencies

To install the dependencies, run pip install -r requirements.txt. It is possible that the program could work with different dependencies.

Sampling

Class imbalance exists in the data set that was used to train the model (Check here for the dataset). This issue was fixed by oversampling the data.

Future improvements

  • The convolutional neural network used in this project is still shallow. In the future, it is possible to make the model better by adding more layers and a few more things such as dropout and normalization layer.
  • When oversampling, some data seems to break, which worsen the performance of the model. This has to be fixed somehow in the future to improve the accuracy of the model.

Reference

facial-expression-detection's People

Contributors

ayumu-j-s avatar

Watchers

 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.