nayeem8527 / live-facial-recognition Goto Github PK
View Code? Open in Web Editor NEWLive Facial Recognition
Live Facial Recognition
I meet some problem when i use classifier.py to train new dataset, as below:
"
Number of classes: 1
Number of images: 30
labels:
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
error:
Training classifier
Traceback (most recent call last):
File "classifier.py", line 176, in
main(parse_arguments(sys.argv[1:]))
File "classifier.py", line 102, in main
model.fit(emb_array, labels)
File "/home/yview/.local/lib/python2.7/site-packages/sklearn/svm/base.py", line 150, in fit
y = self._validate_targets(y)
File "/home/yview/.local/lib/python2.7/site-packages/sklearn/svm/base.py", line 525, in _validate_targets
" class" % len(cls))
ValueError: The number of classes has to be greater than one; got 1 class
"
The new dataset locate at the same dir as:
./dataset
|__ thomas
|__thomas_0001.jpg
|__thomas_0002.jpg
...
|__thomas_00030.jpg
The command as below:
python classifier.py --image_size 160 --batch_size 30 TRAIN dataset models/20170511-185253.pb thomas
i think classifier.py can not read the labels from the dataset.
how can i do to make classifier.py read the labels correctly?
hi, may i know your computer specification to get 17fps?
hi, i just check train_classifier.py, is face alignment required before training the classifier?
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.