GithubHelp home page GithubHelp logo

codedao360 / humanface-mask-detector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bm777/humanface-mask-detector

0.0 0.0 0.0 70.57 MB

Build, train and deploy a complete human face mask detector using tensorflow.keras and opencv

License: Other

Python 37.10% Jupyter Notebook 62.90%

humanface-mask-detector's Introduction

How does human face mask detector work?

Install dependencies

  • tensorflow
  • numpy
  • sklearn (scikit-learn)
  • tensorflow-gpu
  • matplotlib
  • imutils

Clone the project

$git clone https://github.com/bm777/humanface-mask-detector.git
cd humanface-mask-detector

How to implement your own face mask detector

  • Fine tuning Load model: res10_300x300_ssd_iter_140000.caffemodel. We Construct new FC head(Fully connected layers), append it the base model and we freeze the base layers of the network(res10.*.caffemodel) -Notice: the weight sof the layers(base model) will not uploaded during the process of backpropagation. Whereas the head layer weight will be tunued.
  • Training, testing and validation stage In this section, we load face mask dataset from disk and then train a model using tensorflow.keras 2.1.0. To perform your accuracy, you can change your hyperparameters(batch size and number of epoch learning rate)
python3 fm_train.py --dataset dataset
# After training you can test your classifier by:
python3 detect_mask_picture.py --image examples/other.jpg

Training phase

  • History ploted

History of training and validation stage

Credit

humanface-mask-detector's People

Contributors

bm777 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.