Skip to content

AnjaanKhadka/Face-mask-Detection-using-YOLOv3

Repository files navigation

YOLOv3 based Mask and non-mask identifier

About

It is simple implementation of YOLOv3 model for detecting masked perople apart from unmasked ones in real time. Thid sydtem can be useful for entrance in this pandemic.

Useful Links

Do follow following links for dataset, model, and trained weight file.

Dataset From Kaggle

Trained Weight file

YOLO darknet from AlexeyAB

Requirements

  • Python version 3.8

  • Python libraries listed in requirements.txt

      pip install -r requirements.txt
    
  • Weight file. ( If you do not want to train on your own )

Training

Follow training steps as one by one from Training_YOLOv3.ipynb file. ( Use of Google colab suggested )

Inference

First you should download Weight file and keep it in the same folder.

Results

Outputs

Images

Tested on image

Video

Tested on video

Training Curve

Currently I have trained upto 2400 iterations and got descent result. this model can be trained even more. Try training upto 6000 iterations or even more.

Training Curve

Output parameters

mAP : 76%

fps on CPU : 1.7fps

Training Time : 2hrs 13 min


About

This is to detect face mask and non masked faces apart in realtime

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published