GithubHelp home page GithubHelp logo

udaram / real-time-facial-expression-recognition Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 3.0 645 KB

Real Time Facial Expression Recognition with Deep Learning with keras

Jupyter Notebook 100.00%
facial-expression-recognition hacktoberfest

real-time-facial-expression-recognition's Introduction

Real time Facial Expression Recogniser

This repository contains the real time facial Expression recogniser.

It can predict the 7 below expressions

  • 0:"Angry",
  • 1:"Disgust",
  • 2:"Fear",
  • 3:"Happy",
  • 4:"Sad",
  • 5:"Surprise",
  • 6:"Neutral" of the person in real time (person standing infront of camera)

The Deep Learning model is trainind on the around 29,000 imges of persons with different facial expressions. Link :-https://drive.google.com/file/d/1mvoYppdeiOSLx2lGE7Ow6rGlU5IIXxy6/view?usp=sharing

Results


alt text

alt text

real-time-facial-expression-recognition's People

Contributors

udaram avatar udaramrdc avatar

Stargazers

inhye avatar Shrimanta Satpati avatar capitan_alegria avatar happynorth avatar Archit Gupta avatar Adam Zikri Zailani avatar  avatar Esraa Khaled Ahmed avatar Ahsan Javed avatar Nevil Mathew avatar  avatar  avatar

Watchers

James Cloos avatar

real-time-facial-expression-recognition's Issues

Image.Reshape Error

On cell # 6 , Image.Reshape(image.reshape[0] is giving the error to the array can not transform.

create convolutional model error

i use jupyter notebook with anaconda, my problem happen when i run the code below
#####################
classes=7
model = create_convolutional_model(classes)
model.summary()
######################

AttributeError Traceback (most recent call last)
in
1 classes=7
----> 2 model = create_convolutional_model(classes)
3 model.summary()

in create_convolutional_model(classes)
1 def create_convolutional_model(classes):
2 model = Sequential()
----> 3 model.add(Conv2D(32,kernel_size=(2,2),strides=(1,1),activation='relu',input_shape=(48,48,1)))
4 model.add(BatchNormalization())
5 model.add(MaxPooling2D(pool_size=(2,2),strides=(2,2)))

~\anaconda3\envs\tf\lib\site-packages\keras\engine\sequential.py in add(self, layer)
164 # and create the node connecting the current layer
165 # to the input layer we just created.
--> 166 layer(x)
167 set_inputs = True
168 else:

~\anaconda3\envs\tf\lib\site-packages\keras\backend\tensorflow_backend.py in symbolic_fn_wrapper(*args, **kwargs)
73 if _SYMBOLIC_SCOPE.value:
74 with get_graph().as_default():
---> 75 return func(*args, **kwargs)
76 else:
77 return func(*args, **kwargs)

~\anaconda3\envs\tf\lib\site-packages\keras\engine\base_layer.py in call(self, inputs, **kwargs)
444 # Raise exceptions in case the input is not compatible
445 # with the input_spec specified in the layer constructor.
--> 446 self.assert_input_compatibility(inputs)
447
448 # Collect input shapes to build layer.

~\anaconda3\envs\tf\lib\site-packages\keras\engine\base_layer.py in assert_input_compatibility(self, inputs)
308 for x in inputs:
309 try:
--> 310 K.is_keras_tensor(x)
311 except ValueError:
312 raise ValueError('Layer ' + self.name + ' was called with '

~\anaconda3\envs\tf\lib\site-packages\keras\backend\tensorflow_backend.py in is_keras_tensor(x)
693 ```
694 """
--> 695 if not is_tensor(x):
696 raise ValueError('Unexpectedly found an instance of type ' + 697 str(type(x)) + '. '

~\anaconda3\envs\tf\lib\site-packages\keras\backend\tensorflow_backend.py in is_tensor(x)
701
702 def is_tensor(x):
--> 703 return isinstance(x, tf_ops._TensorLike) or tf_ops.is_dense_tensor_like(x)
704
705

AttributeError: module 'tensorflow.python.framework.ops' has no attribute '_TensorLike'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.