Giter VIP home page Giter VIP logo

face-mask-detection-using-yolo-v3's Introduction

FACE-MASK DETECTION

A minimal PyTorch implementation of YOLOv3, with support for training, interface & evalution.
To train on custom dataset please visit my another [GitRepo].

ABSTARCT

APPROCH

Standard YOLO V3 Approch is modified, and the table shows what change has been made.

Standard YOLO Approch Self-Modified YOLO Approch
1. Object Detection Process 1. Object Detection Process
... 1.1. Localization ... 1.1. Localization
... 1.2. Class Prediction ... 1.2. Class Prediction
2. Thresholding 2. Thresholding
3. Non max suppression with respect to Class 3. Non max suppression irrespective of class label
4. Bounding Box Labelling

REPORT

INSTALLATION

Clone and install requirements
> git clone https://github.com/NisargPethani/Face-Mask-Detection-using-YOLO-v3.git
> cd Face-Mask-Detection-using-YOLO-v3/
> pip install -r requirements.txt
Checkpoints

Download checkpoint From [GoogleDrive]
Copy yolov3_ckpt_35.pth into checkpoints/

EVALUATION

Evaluates the model.

> python validate.py --weights_path checkpoints/yolov3_ckpt_35.pth

Average Precisions:

Class AP
Class '0' (MASK) 73.0
Class '1' (NO_MASK) 83.3

mAP: 78.19

DETECTION

Real Time Detection

> python cam_detect.py --weights_path checkpoints/yolov3_ckpt_35.pth

Some Screen-shots of Real-Time Detection is shown below

Detection in Image

Move inmages to testing/input/images

> python image_detect.py --image_folder testing/input/images --weights_path checkpoints/yolov3_ckpt_35.pth

Detection in Video

Make new directory with name: 'videos' in testing/input
Move videos to testing/input/videos

> python video_detect.py --image_folder testing/input/videos --weights_path checkpoints/yolov3_ckpt_35.pth

YOUTUBE

Following YouTube video shows the output.

CREDIT

[Paper] [Project Webpage] [Authors' Implementation]

@article{yolov3,
  title={YOLOv3: An Incremental Improvement},
  author={Redmon, Joseph and Farhadi, Ali},
  journal = {arXiv},
  year={2018}
}

Also Help is taken from [GitRepo]

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.