All Projects → Devbishnoi29 → Facial-Expression-Recognition

Devbishnoi29 / Facial-Expression-Recognition

Licence: other
Facial-Expression-Recognition using tensorflow

Programming Languages

python
139335 projects - #7 most used programming language

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

TF-Model-Deploy-Tutorial
A tutorial exploring multiple approaches to deploy a trained TensorFlow (or Keras) model or multiple models for prediction.
Stars: ✭ 51 (+168.42%)
Mutual labels:  tensorflow-models
char-VAE
Inspired by the neural style algorithm in the computer vision field, we propose a high-level language model with the aim of adapting the linguistic style.
Stars: ✭ 18 (-5.26%)
Mutual labels:  tensorflow-models
FMPN-FER
Official PyTorch Implementation of 'Facial Motion Prior Networks for Facial Expression Recognition', VCIP 2019, Oral
Stars: ✭ 76 (+300%)
Mutual labels:  facial-expression-recognition
entity-network
Tensorflow implementation of "Tracking the World State with Recurrent Entity Networks" [https://arxiv.org/abs/1612.03969] by Henaff, Weston, Szlam, Bordes, and LeCun.
Stars: ✭ 58 (+205.26%)
Mutual labels:  tensorflow-models
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 (+152.63%)
Mutual labels:  facial-expression-recognition
bodymoji
Draws an emoji on your face! Powered by Nuxt.js, Tensorflow.js and Posenet
Stars: ✭ 21 (+10.53%)
Mutual labels:  tensorflow-models
MAX-Text-Summarizer
Generate a summarized description of a body of text
Stars: ✭ 27 (+42.11%)
Mutual labels:  tensorflow-models
Android-Machine-Learning-With-TensorFlow
Tensor Flow implementation for Android
Stars: ✭ 17 (-10.53%)
Mutual labels:  tensorflow-models
Tensorflow-Wide-Deep-Local-Prediction
This project demonstrates how to run and save predictions locally using exported tensorflow estimator model
Stars: ✭ 28 (+47.37%)
Mutual labels:  tensorflow-models
GAN-Project-2018
GAN in Tensorflow to be run via Linux command line
Stars: ✭ 21 (+10.53%)
Mutual labels:  tensorflow-models
Autoregressive-models
Tensorflow 2.0 implementation of Deep Autoregressive Models
Stars: ✭ 18 (-5.26%)
Mutual labels:  tensorflow-models
video-game-encyclopedia
474417 Games with Metacritic Score, Ratings, Genres, Publishers, Platforms, ...
Stars: ✭ 16 (-15.79%)
Mutual labels:  kaggle-dataset
relation-network
Tensorflow Implementation of Relation Networks for the bAbI QA Task, detailed in "A Simple Neural Network Module for Relational Reasoning," [https://arxiv.org/abs/1706.01427] by Santoro et. al.
Stars: ✭ 45 (+136.84%)
Mutual labels:  tensorflow-models
icml17 knn
Deriving Neural Architectures from Sequence and Graph Kernels
Stars: ✭ 59 (+210.53%)
Mutual labels:  tensorflow-models
Hemuer
An AI Tool to record expressions of users as they watch a video and then visualize the funniest parts of it!
Stars: ✭ 22 (+15.79%)
Mutual labels:  facial-expression-recognition
Bike-Sharing-Demand-Kaggle
Top 5th percentile solution to the Kaggle knowledge problem - Bike Sharing Demand
Stars: ✭ 33 (+73.68%)
Mutual labels:  kaggle-dataset
tensorflow-basics
A few TensorFlow techniques I'm saving for future reference.
Stars: ✭ 13 (-31.58%)
Mutual labels:  tensorflow-models
tensorflow-face-object-detector-tutorial
How to train a Tensorflow face object detection model
Stars: ✭ 63 (+231.58%)
Mutual labels:  tensorflow-models
FineGrainedVisualRecognition
Fine grained visual recognition tensorflow baseline on CUB, Stanford Cars, Dogs, Aircrafts, and Flower102.
Stars: ✭ 19 (+0%)
Mutual labels:  tensorflow-models
pytorch2keras
PyTorch to Keras model convertor
Stars: ✭ 788 (+4047.37%)
Mutual labels:  tensorflow-models

Facial-Expression-Recognition using Tensorflow

Facial Emotion recognition is very easy task for human, as we have a very complex and sophisticated biological neural network in our brain which has been trained since we born. But it is very difficult task for computer machines. Here I provide a neural network implementation to perform facial expression recognition. It implements a simple but efficient convolution neural network using most popular library tensorflow.

Prerequisites

  • Tensorflow version latest by 1.1, see how to install
  • Csv lib
  • Knowledge of deep learning concepts, if you don't feel comfortable working with cnn then you can use online book by Michael Nielsen.
  • Facial expression data set must be available on your system, download here

Data-sets

The available data sets contains 7 basic emotions: happy, sad, disgust, surprise, fear, anger and neutral. It comprises a total of 35887 pre-cropped, 48-by-48-pixel grayscale images of faces each labeled with one of the 7 emotion classes. This tells that our cnn model outputs either probabilities or class score into 7 classes. I used 28672 number of images for training our neural network model and 7168 number of images for testing purpose.

The Model

It uses csv python module to open given csv file into appropriate csv module. Here we use 5 layers.
	1. Convolutional layer 
		Input  : 4d tensor, dim:[N, w, h, Number of input channel = 1], where N is batch size.
		Output : 4d tensor, dim:[N, w/2, h/2, Number of filters at cnn layer-1]

	2. Convolutional layer 
		Input  : 4d tensor, dim:[N, w/2, h/2, Number of filters at cnn layer-1]
		Output : 4d tensor, dim:[N, w/4, h/4, Number of filters at cnn layer-2]

		Now this output 4d tensor is flattened inorder to provide input to fully connected layer-1.

	3. Fully connected layer
		Input  : 2d tensor, dim:[N, Flattened size]
		Output : 2d tenser, dim:[N, Number of neurons at fully connected layer-1]

	4. Fully connected layer
		Input  : 2d tensor, dim:[N, Number of neurons at fully connected layer-1]
		Output : 2d tenser, dim:[N, Number of neurons at fully connected layer-2]

	5. Output layer.
		Input  : 2d tensor, dim:[N, number of neurons at fully connected layer-2]
		Output : 2d tenser, dim:[N, Number of classes]

How to run

Simply run python file.

Model graph

graph goes here

Plot between Cost and Epochs

cost plot

Plot between Training Accuracy and Epochs

Train accuracy

Plot between Testing Accuracy and Epochs

Test Accuracy

About me

I am a computer programmer who loves to solve programming problems and exploring the exciting possibilities using deep learning. I am interested in solving real life problems using efficient algorithms and computer vision that creates innovative solutions to real-world problems. I hold a B.Tech degree in computer Engineering From Nit kurukshetra. You can reach me on LinkedIn.

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].