Facial expression recognition using CNN model trained on fer2013 dataset.
opencv-python==4.2.0
matplotlib==3.3.0
numpy==1.19.1
pandas==1.0.5
keras==2.3.1
#For images
python demo.py --input [path_to_input_image]
#Example
python demo.py --input data/inputs/0.jpg
#For videos
python demo.py --input [path_to_input_video] --video
#Example
python demo.py --input data/inputs/vid0.mp4
Demo ipython notebook - demo.ipynb
- Download dataset from this link - https://www.kaggle.com/deadskull7/fer2013
- Extract the content of zip inside 'data' folder.
- Run below command -
python train.py --path [path_to_csv_file] --epochs [no_of_epochs]
#Example - python train.py --path data/fer2013.csv --epochs 15