Skip to content

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

License

Notifications You must be signed in to change notification settings

ali-sedaghi/RetinaFace-Emotion-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Languages