Giter Site home page Giter Site logo

demo-mask-detection's Introduction

Mask Detection Demo

In the following demo we will demonstrate how to use MLRun to create a mask detection app. We'll train a model that classifies an image of a person as wearing a mask or not, and serve it to an HTTP endpoint.

Key Technologies:

  • Either TF.Keras or PyTorch to train and evaluate the model
  • Horovod to run distributed training
  • ONNX to optimize and accelerate the model's performance
  • Nuclio to create a high-performance serverless Serving function
  • MLRun to orchestrate the process

Credits:

  • The model is trained on a dataset containing images of people with or without masks. The data used was taken from Prajna Bhandary, github link.
  • The training code is taken from Adrian Rosebrock, COVID-19: Face Mask Detector with OpenCV, Keras/TensorFlow, and Deep Learning, PyImageSearch, page link, accessed on 29 June 2021.

Notebooks:

The demo is split among 3 notebooks and it is important to run them sequentially as each relies on the previous one:

  1. Training and Evaluation - Build the mask detection model and run training and evaluation with MLRun's deep learning auto-logging and distributed training (using Horovod).

  2. Serving - Serve the model we trained as an HTTP endpoint, demonstrating a serving graph where we preprocess the images before and after, inferring them through the model:

  1. Automatic Pipeline - Build an automatic pipeline, using the MLRun functions from notebooks 1 and 2 with an additional step: optimizing (using ONNX).

We hope you enjoy using MLRun!

demo-mask-detection's People

Contributors

aviaiguazio avatar orkoresh4 avatar felipenv avatar daniels290813 avatar

Watchers

Liran BG 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.