Giter Site home page Giter Site logo

face_id's Introduction

Face_ID

  • AIM

    To create a simple and reliable Face Recognition program (For this VIDEO) by using Tensorflow in the Python Programming Language.

  • Setup

    You will need to install Tensorflow and Python on your Machine. To install tensorflow, hit the following in the terminal:

    pip install tensorflow
    pip install opencv-python
    

    I'm using OpenCV for taking a realtime image of our faces from our WebCamera and then Identify that image from the retrained model! In this way, our program of face_ID will work.

    NOTE: You must have a WebCamera, either on your Laptop or Computer!

    That's enough for (this)[] video. Also, you need to clone this Repository, to do so, hit the following:

    git clone https://github.com/MauryaRitesh/Face_ID
    
  • Gathering Images

    You will need a lot of images of your(or the one for whom you are creating the Face ID) Faces, i.e., go ahead and take hundreds of thousands of selfies and fill all those in the Images folder of this repository. You will need to create a Folder and rename as your name. E.g., Create a folder named Ritesh and another as Not Ritesh.

  • (Re)Training

    To train the model, hit the following:

    python -m scripts.retrain \
    --output_graph=tf_files/retrained_graph.pb \
    --output_labels=tf_files/retrained_labels.txt \
    --architecture=inception_v3 \
    --image_dir=tf_files/images
    
  • Using the Model

    To get the model Working, hit the following:

    python -m scripts.label_image
    

    That's enough for now! Do STAR this Repo if it really helped you!

face_id's People

Contributors

mauryaritesh 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

Watchers

 avatar  avatar  avatar

face_id's Issues

PROBLEM IN EXECUTING THIS CODE

My code is running till the last test line (python -m scripts.label_image). It takes the photo and the command prompt just keeps blinking without any error or anything. We placed the models in tf_files properly and even changed the location in the code label_image(32nd line). Please help at the earliest. Thank You!!

How to add UNknown label for untrained images

HI,

I am using this code to identify unknown faces that are not trained, so Can you please let me know, where to add "Unknown" label, so that I can take screen shot of those unknown persons to train later.

Thanks
Guru

ModuleNotFoundError: No module named 'scripts.retrain--output_graph=tf_files/retrained_graph'

hi Ritesh,
when i run code python -m scripts.retrain--output_graph=tf_files/retrained_graph.pb--output_labels=tf_files/retrained_labels.txt --architecture=inception_v3 --image_dir=tf_files/images .

i got the following error :-
D:\Analytics\Face_ID>python -m scripts.retrain--output_graph=tf_files/retrained_graph.pb--output_labels=tf_files/retrained_labels.txt --architecture=inception_v3 --image_dir=tf_files/images
D:\anaconda5.1\python.exe: Error while finding module specification for 'scripts.retrain--output_graph=tf_files/retrained_graph.pb--output_labels=tf_files/retrained_labels.txt' (ModuleNotFoundError: No module named 'scripts.retrain--output_graph=tf_files/retrained_graph')

Can you help me out?

error running the last line of code

on running python -m scripts.retrain --output_graph=tf_files/retrained_graph.pb --output_labels=tf_files/retrained_labels.txt --architecture=inception_v3 --image_dir=tf_files/images

error given is
Error importing tensorflow. Unless you are using bazel,
you should not try to import tensorflow from its source directory;
please exit the tensorflow source tree, and relaunch your python interpreter
from there.

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.