Skip to content

Emotion recognition using DL, different architectures compared. Two new datasets contributed using Facial Landmarking. Pytorch implementation.

Notifications You must be signed in to change notification settings

dhruv2601/YetAnotherEmotionDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CV-Assignment-2

Run an experiment

root/
  ├── .gitignore
  ├── utils.py
  ├── run_experiment.py
  ├── README.md
  ├── models/
  ├── data/
  ├── dataset/
  ├── preprocessing/
  └── experiments/
          └── experiment1/
              └── config.py

In order to create a new experiment, clone one of the experiments folder and edit the config.py file with your information. You must have a GPU for it to work otherwise it won't run. Also, dowload this data https://www.kaggle.com/ashishpatel26/facial-expression-recognitionferchallenge and have the .csv in the data directory.

    python3 run_experiment.py -f <exp_folder_name>

Report

The report attached goes into much more details and is an interesting read(in our view 📚) ProjectReport.pdf


Architecture

Architectures of Models implemented

Dataset

The original dataset is a grayscale image(originall in a different representation), as an experiment, we implement a model for facial landmarking to crop faces from images and compare accuracy. The motivation for cropping the faces is to reduce noise from the images and highlight useful features.

Sample Original Image

Sample Cropped Image

Results

The highest accuracy we received is ~80% on validation, which surpasses the current higest accuracy in the kaggle competition(from where the dataset is taken). Below are the results.

Training results Metric results

The Horror that lasts a lifetime

We decided to interpret the results from our CNN layers to understand the representations that each layer learns for an image. Learned representations

About

Emotion recognition using DL, different architectures compared. Two new datasets contributed using Facial Landmarking. Pytorch implementation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published