GithubHelp home page GithubHelp logo

adithyaselv / face-expression-detect Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 27.0 15.29 MB

face-expression prediction using python

Home Page: https://www.youtube.com/watch?v=2ky_W649G-Q

License: GNU General Public License v2.0

Python 100.00%

face-expression-detect's People

Contributors

adithyaselv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

face-expression-detect's Issues

Error when loading data using python 3

Initializing Dlib face Detector..
Loading landmark identification data...
Loading trained data.....
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/sklearn/externals/joblib/numpy_pickle_compat.py", line 226, in load_compatibility
obj = unpickler.load()
File "/usr/lib/python3.6/pickle.py", line 1050, in load
dispatchkey[0]
File "/usr/lib/python3.6/pickle.py", line 1226, in load_short_binstring
self.append(self._decode_string(data))
File "/usr/lib/python3.6/pickle.py", line 1166, in _decode_string
return value.decode(self.encoding, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 6: ordinal not in range(128)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "EmoDetect.py", line 113, in
classify=joblib.load("traindata.pkl")
File "/usr/lib/python3.6/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 573, in load
return load_compatibility(fobj)
File "/usr/lib/python3.6/site-packages/sklearn/externals/joblib/numpy_pickle_compat.py", line 235, in load_compatibility
raise new_exc
ValueError: You may be trying to read with python 3 a joblib pickle generated with python 2. This feature is not supported by joblib.

Cant Load the data

Unable to load trained data.
Make sure that traindata.pkl and pcadata.pkl are in the current directory
I checked the path to these files

how can i solve this issue

Performing PCA Transform.......
Traceback (most recent call last):
File "EmoDetect.py", line 114, in
Predict_Emotion(filename)
File "EmoDetect.py", line 63, in Predict_Emotion
pca_features=pca.transform(features)
File "/usr/local/lib/python2.7/dist-packages/sklearn/decomposition/base.py", line 128, in transform
X = check_array(X)
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/validation.py", line 410, in check_array
"if it contains a single sample.".format(array))
ValueError: Expected 2D array, got 1D array instead:
array=[ 1.01314577 1.0087923 5.41773198 ..., 0.88240298 4.17091737
1.19806876].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.

Whether the training code can be provided?

Hi,
When I tried to use your code to test our own emotional pictures, most of them were not correctly identified. Even if the emotion of the picture is obvious.

Image

I would like to try to train our own facial expression database. Can you provide the training code? Thanks.

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.