kim-sardine / covid-mask-detector

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buy Me A Coffee

COVID-19 Face Mask Detector

samples

Reproduction

git clone git@github.com: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

About

Detect whether a person is wearing a mask or not

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

License:MIT License


Languages

Language:Python 100.0%