Skip to content

Latest commit

 

History

History
106 lines (74 loc) · 2.66 KB

README.md

File metadata and controls

106 lines (74 loc) · 2.66 KB

RetinaFace-Emotion-Detection

Facial Expression Recognition with RetinaFace as face detector and Region of Interest (RoI) based ResNet as Emotion Detector

Docs

Wrapper on our other repositories

Classes

  1. Angry
  2. Disgust
  3. Fear
  4. Happy
  5. Sad
  6. Surprise
  7. Neutral

Model Checkpoints

You need to place checkpoints in checkpoints folder.

How to run

Change directory to code folder

cd code

Install dependencies

conda env create -f environment.yml
conda activate retinaface-roi

Image and results will be saved in results folder

python run.py --img_path="../photos/test1.jpg"

Webcam

python run.py --webcam=True

Results

Input

input

Detected faces using RetinaFace

face1 face2 face3 face3 face4 face5

RoI Mask

roi1 roi2 roi3 roi3 roi4 roi5

Output (from left to right)

  1. Happy
  2. Happy
  3. Neutral
  4. Surprise
  5. Surprise

Webcam Demo

python run.py --webcam=True

webcam

References

https://github.com/peteryuX/retinaface-tf2