Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.46 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.46 KB

Facial Emotion Recognition using CNN

The aim is to build and test CNNs to tackle the FER (Facial Emotion Recognition) problem.

Dataset

The project expects the fer2013 dataset to be present as a csv file named fer2013.csv under ./data/ directory.

  1. Download the dataset from here
  2. Untar the file and place the fer2013.csv fil under the ./data/ directory

Dependencies

The project makes use of Python 2.7 and PyTorch.

PyTorch can installed from here

Other dependencies can be found in the requirements.txt file

Run the following command in the project home to install the python libraries.

pip install -r ./requirements.txt

Running the code

The network can be trained by running the train.py in the home directory of the project.

The architecture of the network can be specified through the --model parameter. An example is shown below.

python train.py --model resnet20

Valid models include bkvgg12, resnet20 and cnn_sift

The list of all arguments that can be provided to train.pycan be see by running the following command

python train.py --help

There are arguments that can be used to specify the epcohs, batch_size, optmizer etc.

Optional Dependencies