Coder Social home page Coder Social logo

ashuamit8 / tensorflow-face-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yeephycho/tensorflow-face-detection

0.0 1.0 0.0 25.32 MB

A mobilenet SSD based face detector, powered by tensorflow object detection api, trained by WIDERFACE dataset.

License: Apache License 2.0

Python 100.00%

tensorflow-face-detection's Introduction

Tensorflow Face Detector

A mobilenet SSD(single shot multibox detector) based face detector with pretrained model provided, powered by tensorflow object detection api, trained by WIDERFACE dataset.

Features

Speed, run 60fps on a nvidia GTX1080 GPU.

Memory, requires less than 364Mb GPU memory for single inference.

Robust, adapt to different poses, this feature is credit to WIDERFACE dataset, I manually cleaned the dataset to balance the precision and recall trade off.

Parallel, multiple process video processing, can inference multiple input simultaneously, I tested to process 4 videos on a single GPU card at the same time, the speed is still competitive, and there's still room to accommodate more processes.

Parallel data processing

Dependencies

Tensorflow > 1.2

Tensorflow object detection api (Please follow the official installation instruction, otherwise, I cannot guarantee that you can run the code)

OpenCV python

Usage

Effect

Click Youtube to view the effect or Youku.

Prepare pre-trained model

Click here to download the pre-trained model from google drive. Put the model under the model folder.

Prepare video

Put your test video (mp4 format) under the media folder, rename it as test.mp4.

Run video detection

At the source root

python inference_video_face.py

After finished the processing, find the output video at media folder.

Run detection from usb camera

You can see how this face detection works with your web camera.

usage:inference_usbCam_face.py (cameraID | filename)

Here is an example to use usb camera with cameraID=0.

python inference_usbCam_face.py 0

Note: this script does not save video.

Known Issue

Please view that issue here if your output video is blank. A brief reminder is: check the input codec and check the input/output resolution, since this part is irrelevant to the algorithm, no modification will be made to master branch.

Further

The model released by this repo. has already been merged into Deep Video Analytics / Visual Data Network.

Please click the following link for more applications.

[1] https://www.deepvideoanalytics.com [2] https://github.com/VisualDataNetwork/root

License

Usage of the code and model by yeephycho is under the license of Apache 2.0.

The code is based on GOOGLE tensorflow object detection api. Please refer to the license of tensorflow.

Dataset is based on WIDERFACE dataset. Please refer to the license to the WIDERFACE license.

tensorflow-face-detection's People

Contributors

katsunoriwa avatar yeephycho avatar amitgroomefy avatar xiangyann avatar

Watchers

Amit KumaR avatar

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.