Skip to content

Latest commit

 

History

History
44 lines (22 loc) · 1.55 KB

File metadata and controls

44 lines (22 loc) · 1.55 KB

Due to ongoing Corona pandemic, wearing mask has become an integral part of our lives. Nowadays it is important to wear a face mask to ensure the safety of ourself and others.I have created a simple object detection model that can detect whether you are wearing a mask or not. I have utilized the object detection API and tensorflow framework and used a pretrained model RetinaNet50 from "Model Zoo". I have used face mask detection datasets from "kaggle". The model has achieved 90% accuracy with testing data.

With_Mask

with_mask

Without_Mask

without_mask

Steps:

1 . Installation of necessary libraries

  1. Preparing dataset for Custom Training

  2. Using a Pretrained Model

  3. Creating a Labelmap.pbtxt

  4. Creating xml to csv

  5. Creating tensorflow records files from csv

  6. Getting the config file and do the necessary changes

  7. Start the training

  8. Model Evaluation

  9. Exporting the graph

  10. Doing prediction on trained model

  11. Using webcam for Prediction

Link : https://blog.tensorflow.org/2020/07/tensorflow-2-meets-object-detection-api.html

object detection repo: https://github.com/tensorflow/models/tree/master/research/object_detection

Tensorflow Models Repo : https://github.com/tensorflow/models

Tensorflow Model Selection : https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2_detection_zoo.md