All Projects → Leonard-Niu → Facial-Expression-Recognition

Leonard-Niu / Facial-Expression-Recognition

Licence: other
A Pytorch Implementation of FER( facial expression recognition )

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Facial-Expression-Recognition

ferattention
FERAtt: Facial Expression Recognition with Attention Net
Stars: ✭ 69 (+155.56%)
Mutual labels:  facial-expression-recognition, fer
Hemuer
An AI Tool to record expressions of users as they watch a video and then visualize the funniest parts of it!
Stars: ✭ 22 (-18.52%)
Mutual labels:  facial-expression-recognition
Skin Lesions Classification DCNNs
Transfer Learning with DCNNs (DenseNet, Inception V3, Inception-ResNet V2, VGG16) for skin lesions classification
Stars: ✭ 47 (+74.07%)
Mutual labels:  vgg16
Identifying-Clothing-Attributes
Pretrained VGG-16 network as feature extractor for Object Recognition (Python, Keras, Scikit-Learn)
Stars: ✭ 22 (-18.52%)
Mutual labels:  vgg16
Artistic-Style-Transfer-using-Keras-Tensorflow
Art to Image Style Transfer using Keras and Tensorflow.
Stars: ✭ 22 (-18.52%)
Mutual labels:  vgg16
AIML-Human-Attributes-Detection-with-Facial-Feature-Extraction
This is a Human Attributes Detection program with facial features extraction. It detects facial coordinates using FaceNet model and uses MXNet facial attribute extraction model for extracting 40 types of facial attributes. This solution also detects Emotion, Age and Gender along with facial attributes.
Stars: ✭ 48 (+77.78%)
Mutual labels:  facial-expression-recognition
MA-Net
“Learning Deep Global Multi-scale and Local Attention Features for Facial Expression Recognition in the Wild”, IEEE T-IP, 2021.
Stars: ✭ 53 (+96.3%)
Mutual labels:  facial-expression-recognition
Facial-Expression-Recognition
Facial-Expression-Recognition using tensorflow
Stars: ✭ 19 (-29.63%)
Mutual labels:  facial-expression-recognition
FMPN-FER
Official PyTorch Implementation of 'Facial Motion Prior Networks for Facial Expression Recognition', VCIP 2019, Oral
Stars: ✭ 76 (+181.48%)
Mutual labels:  facial-expression-recognition
pytorch-deconvnet
Example of Deconvnet in PyTorch for VGG16
Stars: ✭ 61 (+125.93%)
Mutual labels:  vgg16
Emotion-Investigator
An Exciting Deep Learning-based Flask web app that predicts the Facial Expressions of users and also does Graphical Visualization of the Expressions.
Stars: ✭ 44 (+62.96%)
Mutual labels:  facial-expression-recognition
facial-expression-recognition
The main purpose of the project - recognition of emotions based on facial expressions. Cohn-Kanade data set (http://www.pitt.edu/~emotion/ck-spread.htm) is used for explorations and training
Stars: ✭ 60 (+122.22%)
Mutual labels:  facial-expression-recognition
dl-relu
Deep Learning using Rectified Linear Units (ReLU)
Stars: ✭ 20 (-25.93%)
Mutual labels:  vgg16
deep-dream-pytorch
Pytorch implementation of DeepDream on VGG16 Network
Stars: ✭ 46 (+70.37%)
Mutual labels:  vgg16
Deep-Learning
It contains the coursework and the practice I have done while learning Deep Learning.🚀 👨‍💻💥 🚩🌈
Stars: ✭ 21 (-22.22%)
Mutual labels:  vgg16
vgg-caffe
The VGG16 and VGG19 networks in caffe with jupyter notebook
Stars: ✭ 45 (+66.67%)
Mutual labels:  vgg16
Near-Duplicate-Video-Detection
Detecting near-duplicate videos by aggregating features from intermediate CNN layers
Stars: ✭ 90 (+233.33%)
Mutual labels:  vgg16
SuperResolution-with-Perceptual-loss
In this project I have used an convolution neural network with perceptual loss to convert low res image into high res image.
Stars: ✭ 17 (-37.04%)
Mutual labels:  vgg16
behavioral cloning
No description or website provided.
Stars: ✭ 26 (-3.7%)
Mutual labels:  vgg16
semantic segmentation
Semantically segment the road in the given image.
Stars: ✭ 91 (+237.04%)
Mutual labels:  vgg16

A Pytorch Implementation of FER(Facial-Expression-Recognition)

Introduction

This project aims to classify facial expression. Here I provide seven types of expression, including Angry Disgusted Fearful Happy Sad Surprised Neutral. With 250 epochs, this accuracy of baseline achieves 70.382%

Here is the trained model link: ———— Trained Model Link password:5nfw

  • Backbone ——VGG16
  • Dataset ——FER2013:

Dataset Link 240×240 Data(Train、Val、Test) password:5j3x Backbone

Highlight

  • In this project, face detection part is applied, which can definitely improve the test accuracy. More over, it can support the robust of the model, especially no face input image.
  • GPU and CPU all support. If no GPU, it's OK.
  • Dependencies fewer.
  • When testing, batch images input is supported in the demo.

Results Show

Result1 Result2

Requirement

Recommend to use Anaconda

  • Ubuntu16.04 (Windows also avaliable)
  • Python 3.6
  • Pytorch (latest version or old version are all fine)
  • torchvision
  • numpy
  • matplotlib
  • opencv(cv2)
  • pillow

Dataset Process

FER2013 includes 35887 pictures: 48 × 48 pixels, here using bilinear interpolation to resize the expression pictures to 240 × 240 pixels. The input of the net is 224 × 224, same as original VGG16.

Train

First, put the processed dataset in the folder "data", the data folder like following:

-- data
------- train
------------------ 0
---------------------------00000.jpg
---------------------------00005.jpg
...
------------------ 1
---------------------------00023.jpg
...
...
------------------ 6
---------------------------00061.jpg
...

------- val
------------------ 0
---------------------------00006.jpg
...
------------------ 1
---------------------------00043.jpg
...
...
------------------ 6
---------------------------00021.jpg
...

------- test
------------------ 0
---------------------------00008.jpg
...
------------------ 1
---------------------------00011.jpg
...
...
------------------ 6
---------------------------00022.jpg
...

0-6 represent 7 different expression: Angry Disgusted Fearful Happy Sad Surprised Neutral

Demo

Image Input

python demo_image.py

Running the demo, first need to type the image name, such as 1.jpg.

Put input images in input folder

Camera Detection

python demo_camera.py

Batch Image Input

python demo_image_batch.py

TODO

Find image process methods to improve the accuracy.

Apply RPN face detection to improve accuracy.

Issue and Suggestion

Any questions, open a new issue.

If helpful, please give me a star

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].