Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.68 KB

README.md

File metadata and controls

53 lines (38 loc) · 1.68 KB

FER

Facial-Expression-Recognition.Pytorch

A CNN based pytorch implementation on facial expression recognition (FER2013), on google colab achieving 58.149% in FER2013

Dependencies

  • Python 2.7
  • Pytorch >=0.2.0
  • h5py (Preprocessing)
  • sklearn
  • OpenCV

FER2013 Dataset

Model Architecture

The entire model consists of 14 layers in total. In addition to layers below lists what techniques are applied to build the model.

  1. Convolution with 16 different filters in size of (3x3)
  2. Max Pooling by 2
  • ReLU activation function
  1. Convolution with 64 different filters in size of (3x3)
  2. Max Pooling by 2
  • ReLU activation function
  1. Convolution with 128 different filters in size of (3x3)
  • ReLU activation function
  1. Convolution with 256 different filters in size of (3x3)
  2. Max Pooling by 2
  • ReLU activation function
  1. Flattening the 3-D output of the last convolutional operations.
  2. Fully Connected Layer with 500 units
  3. Fully Connected Layer with 200 units
  4. Fully Connected Layer with 7 units

Preprocessing Fer2013

  • Dataset is already preprocessed from csv to h5py

Training the model

Achieving over 96.798% accuracy using batch size as 100.

Prediction

Drawing

Drawing