adithyaselv / face-expression-detect Goto Github PK
View Code? Open in Web Editor NEWface-expression prediction using python
Home Page: https://www.youtube.com/watch?v=2ky_W649G-Q
License: GNU General Public License v2.0
face-expression prediction using python
Home Page: https://www.youtube.com/watch?v=2ky_W649G-Q
License: GNU General Public License v2.0
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.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.