Giter Site home page Giter Site logo

dacus1995 / mask-detector Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 1.58 MB

This repo contains a training setup for creating a model that can detect faces and label them as wearing\not wearing masks.

Python 14.27% Batchfile 0.07% Jupyter Notebook 85.66%
pytorch facemask face-detection faster-rcnn mobilenetv2 covid-19 custom-dataset object-detection face-mask-detection face-mask

mask-detector's Introduction

Mask-Detector

This repo contains a training setup for creating a model that can detect faces and label them as wearing\not wearing masks.


Settings

  • Framework: PyTorch
  • Dataset: Custom build, by generating images with mask wearing faces from empty faces. (Used a modified script from https://github.com/prajnasb/observations)
  • Faster RCNN Architecture with pretrained MobileNet v2 backbone
  • To train: python train_run_builder.py (to change the training setup edit config.py)
  • To run the model on an image or on video stream from a local camera: python detect.py --realtime=False\True

COCO Metrics

IoU metric: bbox

Score IOU AREA RESULTS
Average Precision (AP) @[ IoU=0.50:0.95 area= all maxDets=100 ] = 0.640
Average Precision (AP) @[ IoU=0.50 area= all maxDets=100 ] = 0.990
Average Precision (AP) @[ IoU=0.75 area= all maxDets=100 ] = 0.799
Average Precision (AP) @[ IoU=0.50:0.95 area= small maxDets=100 ] = -1.000
Average Precision (AP) @[ IoU=0.50:0.95 area=medium maxDets=100 ] = 0.609
Average Precision (AP) @[ IoU=0.50:0.95 area= large maxDets=100 ] = 0.653
Average Recall (AR) @[ IoU=0.50:0.95 area= all maxDets= 1 ] = 0.693
Average Recall (AR) @[ IoU=0.50:0.95 area= all maxDets= 10 ] = 0.693
Average Recall (AR) @[ IoU=0.50:0.95 area= all maxDets=100 ] = 0.693
Average Recall (AR) @[ IoU=0.50:0.95 area= small maxDets=100 ] = -1.000
Average Recall (AR) @[ IoU=0.50:0.95 area=medium maxDets=100 ] = 0.650
Average Recall (AR) @[ IoU=0.50:0.95 area= large maxDets=100 ] = 0.706

mask-detector's People

Contributors

dacus1995 avatar

Watchers

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