Code Monkey home page Code Monkey logo

deepface's Introduction

liyana: face analysis project

Twitter Twitch YouTube

For supporters, My Bitcoin/coin.space: 1LUFWnzrGVLdsZ7gnfee87iX6QqSn24Tvr

Thank you for donations, i am grateful.

๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ You can also support me by starring this project ๐ŸŒŸ๐ŸŒŸ๐ŸŒŸ

Face Recognition Models ๐Ÿค“

You can use one of my models or train your own face recognition model with the help of Google Colab page linked below. For more information of the title face recognition, please visit this folder

Open In Colab

Model Architecture Epochs LFW Acc AgeDB Acc CFP Acc
A InceptionResNetV1 9 %99.53 %95.11 %93.97
B ResNet50V2 11 %99.51 %94.53 %93.60
C L_Resnet50_E_IR 7 %99.70 %96.75 %97.34

Features โœ”๏ธ

  • Facial recognition with database
  • Facial recognition on webcam
  • Facial recognition on video
  • Displaying 2D space which database lies on
  • Age, sex and ethnicity detection
  • DeepFake detection

Features that expected to come in next versions ๐Ÿ“

  • Online database that every user can add face to common pool
  • Face re-generation with extracted features
  • Advanced video analysis

liyana 1.1.0

User gives the face at the right side of page to program, program extract features through machine learning model, features compares with those already saved in database and result prints on the screen. Face on the left side of page is Emma Watson's face in the database. Values such age, sex and ethnicity are loaded from database too, you can re-analyze those values by clicking re-analyze with models

Usage ๐Ÿ“—

Python Side ๐Ÿ

  • Install libraries with pip install -r requirements.txt
  • Download a model from face recognition folder, extract it, copy arcface_final.h5 to main_app/python_server/arcface_final.h5
  • Download Age-Sex-Ethnicity classification models, details and last models can be found here
  • Download DeepFake detection models, details and last model can be found here
  • Run main_app/python_server/server.py
  • If you don't need a GUI, run main_app/python_server/client.py. Commands are listed in here.

I highly recommend to use a GPU, you can follow those steps if you have one.

Electron Side ๐Ÿ”Œ

  • Install electron with npm. Check this page for help.
  • You may need to install dependencies for electron, all can be found in here
  • Go /main_app/electron_scripts and run electron . while python server is running.

I will add a video to YouTube to explain how you can install and how it works, stay tuned.

I will make a version of app that works with TensorFlow JS so it can be work with just electron, stay tuned.

deepface's People

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

Watchers

 avatar  avatar  avatar

deepface's Issues

GUI has nothing to display

Hi @aangfanboy,
The liyana-main-app doesn't show anything when i running "./node_modules/.bin/electron ." .โ€‹
Would you have any advice for me?
image

Additionally, did you have any tutorials for non-gui mode( run the client.py.)?
image
like the:
cmd 1: "get_features" img_path ??
cmd 2: "add_to_db" name img_path ??
cmd 3: "go_for_webcam" ??
....

Thanks~

Question about accuracy

Hi @aangfanboy
Why the accuracy rate in your tensorboard is about 22% (after 9 hours and about 50k steps)?
Is it natural?
And if it is normal, what means "accuracy" here?
Thanks

MS1M-ArcFace

Dataset is no longer available on DropBox. Could you update it, or refer another platform to download it and work with it?

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.