Giter Site home page Giter Site logo

fer's Introduction

FER

Facial Expression Recognition based on Convolutional Neural Networks and Transfer learning

In this project, developed in Python 2.7.2 and using the Keras API, the fine-tuning was carried out on the Google Cloud Platform of the Inception-v3, Inception-ResNet-v2 and ResNet-50 models employing the FER-2013 database. The reported results, which can be consulted in the following table, have been obtained on the private test set of the FER-2013 database.

Fine-tuned models Initial weights Accuracy Duration of training (NVIDIA Tesla P100) Number of Parameters Size of the models
ResNet-50 VGGFace2 71.25% 2h 29m 45s (40 epochs) 25,613,383 308.3 MB
Inception-ResNet-v2 ImageNet 65.00% 1h 4m 26s (27 epochs) 55,857,255 449.3 MB
Inception-v3 ImageNet 63.86% 5h 9m 37s (80 epochs) 23,873,703 192.1 MB

Directory index

  • src. It is composed of the Python Notebooks used to describe the models and deploy them in the Google Cloud Platform.

  • FER-2013. It contains the set of images from the FER-2013 database used for training, validation and evaluation. This division follows the patterns stipulated in the challenge FER-2013.

  • trained_models. It contains the fine-tuned models that have allowed to obtain the rates shown in the table above.

  • test. It contains a file to reproduce the evaluation made on the FER-2013 datasets and a script that recognizes the expressions in real time using the tools provided by OpenCV and the trained models.

  • CycleGAN. It consists of scripts that try to reproduce a CycleGAN network to increase the number of images labeled with the expression of disgust from the images of the neutral class. The architecture is based on the original implementation in TensorFlow and inspired by the publication of Xinyue Zhu et al..

  • SmartMirror. It contains a very simple interface developed to be used by a smart mirror. It also poses a game to the user who has to imitate the indicated facial expressions. The hits and failures, as well as the response time, are fed back to the user in real time. This development was made with Python 3.6.4.

Demos

  • FER in real time
  • Game interface

fer's People

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.