Git Product home page Git Product logo

live-facial-recognition's People

Contributors

nayeem8527 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

live-facial-recognition's Issues

how can i prepare dataset when using classifier.py

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?

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.