Giter Site home page Giter Site logo

arnavagrawal22 / vggnet-fer2013-implementation Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 160 KB

This project is a custom implementation of VGGNet trained to classify images of faces into 7 classes, representing different emotions.

Python 100.00%
fer2013 fer2013-dataset vggnet emotion-recognition emotion-detection

vggnet-fer2013-implementation's Introduction

Facial Emotion Recognition (VGGNet)

Brief Description

Implemented in PyTorch

This project is a custom implementation of VGGNet trained to classify images of faces into 7 classes, representing different emotions.

The code is highly commented, explaining each step of the process.

Key Highlights

We ran only 35 epochs instead of 300, and our 35 epoch checkpoint can be accessed here 35-Epoch-Checkpoint

  • 62% Test Accuracy against 72% of official implementation
  • Live Webcam Demo
  • Ability to test custom images

Acknowledgement

This is implementation of the paper -

Facial Emotion Recognition: State of the Art Performance on FER2013

Resources Used for Data Generation/Loading and Live Webcam Demo

Dataset

FER2013

Code Structure

model.py : This file contains the VGGNet Model with slight modifications

data_generation.py : This file splits the data into test, train, and val.

data_loader.py : This is the custom dataset and dataset loader

main.py : This has the training loop, as well has we can test custom images , and it also has code to do a live webcam test.

How to Run?

  1. Preparation of data

  • Download the data
  • Unpack fer2013.csv
  • Place it in pwd/data/
  1. Uncomment the data generation lines (First Run only)
  2. By default, the model uses pre-trained parameters, to train the model yourself, you can uncomment the train function call
  3. By default, python main.py will open the webcam demo.

Thank You

vggnet-fer2013-implementation's People

Contributors

arnavagrawal22 avatar

Stargazers

 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.