Giter VIP home page Giter VIP logo

jadhaddad92 / covid-mask-detector Goto Github PK

View Code? Open in Web Editor NEW
111.0 4.0 36.0 24.65 MB

Detect whether a person is wearing a mask or not

Home Page: https://towardsdatascience.com/how-i-built-a-face-mask-detector-for-covid-19-using-pytorch-lightning-67eb3752fd61

License: MIT License

Python 93.59% Dockerfile 6.41%
mask covid19 deep-learning detection pytorch coronavirus pytorch-lightning classification

covid-mask-detector's Introduction

Open in Visual Studio Code license CodeQL

Buy Me A Coffee

COVID-19 Face Mask Detector

samples

Reproduction

git clone [email protected]:JadHADDAD92/covid-mask-detector.git
# Or
git clone https://github.com/JadHADDAD92/covid-mask-detector.git

cd covid-mask-detector

# Download dataset and export it to pandas DataFrame
python -m covid-mask-detector.data_preparation

Training

python -m covid-mask-detector.train

Testing on videos

python -m covid-mask-detector.video modelPath videoPath

Usage

Usage: video.py [OPTIONS] MODELPATH VIDEOPATH

  modelPath: path to model.ckpt

  videoPath: path to video file to annotate

Options:
  --output PATH  specify output path to save video with annotations

Pretrained model

covid-mask-detector/models/face_mask.ckpt

Check Medium post: How I built a Face Mask Detector for COVID-19 using PyTorch Lightning

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.