Skip to content

This repository contains codes used to extract and assemble FG-2020 Competition's Aff-wild2 dataset for model training and testing.

Notifications You must be signed in to change notification settings

zerosansan/fg2020_abaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FG-2020 Competition: Affective Behavior Analysis in-the-wild (ABAW)

This repository is Robolab@UBD's submission for FG-2020 Competition: ABAW Track 2 Expression Challenge. The model was ranked 8th out of 12 with a total score of 0.342 (Accuracy: 63%, F1-Score: 20%) in our first and only attempt.

If you have found this repository useful or have used this repository in any of your scientific work, please consider citing my work using this BibTeX Citation.

Table of contents

Repository Contents

  • data - contains the processed dataset with all the images in its respective folder according to its expressions (e.g 0 - neutral)
  • features - contains NumPy files of the dataset for model training and testing purposes.
  • model - contains trained model checkpoints and weights.
  • results - contains all 223 predictions submission generated after running the baseline model.
  • src - contains codes for the baseline model, dataset extraction, and assembling.

Getting Started

This shows the overall workflow on how to use our scripts to generate prediction results.

  1. Run affwild2_extract.py in the root folder of aff-wild2 dataset. This will generate the training/validation labeled images (aff-wild2/labelled_image) and test images (aff-wild2/labelled_test_image) labeled with dummy annotations.
  2. Place the contents of the two generated folders (i.e aff-wild2/labelled_image, aff-wild2_test/labelled_test_image) in the /data folder in two separate folders (i.e aff-wild2, aff-wild2_test respectively).
  3. Run assembler.py to generate NumPy files which are required for both training and testing. The NumPy files for training/validation can be placed in the folder of /features while NumPy files for testing should be placed in a folder (i.e /features/abaw2020_affwild_test_set)
  4. Runbaseline_model.py to train and test a model using the aff-wild2 dataset. This will also generate a prediction results file for all 223 tests.
  5. Run fix_missing_predictions.py afterwards, this is to add undetected face frames into the prediction files.

Hardware

  • Operating System: Windows 10
  • CPU: Intel i7-9700
  • GPU: Nvidia RTX2070 8GB
  • RAM: 64GB DDR4

Installing packages

Create a virtual environment with Python 3.7.6 64-bit and install the following packages with pip install:

  • opencv-python
  • keras
  • tensorflow
  • matplotlib
  • cmake
  • dlib
  • tqdm
  • scikit-learn
  • imutils
  • iterative_stratification
  • tensorflow-gpu

BibTeX Citation

If you have used this repository in any of your scientific work, please consider citing my work:

@article{anas2020deep,
  title={Deep convolutional neural network based facial expression recognition in the wild},
  author={Anas, Hafiq and Rehman, Bacha and Ong, Wee Hong},
  journal={arXiv preprint arXiv:2010.01301},
  year={2020}
}

Acknowledgments

The model used here is exactly based on mayurmadnani's work. We would like to thank him for making his repository public and available for everyone to use.

About

This repository contains codes used to extract and assemble FG-2020 Competition's Aff-wild2 dataset for model training and testing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages