Deploying Machine Learning Models on The Edge Deploying Machine - - PowerPoint PPT Presentation

deploying machine learning models on the edge deploying
SMART_READER_LITE
LIVE PREVIEW

Deploying Machine Learning Models on The Edge Deploying Machine - - PowerPoint PPT Presentation

Deploying Machine Learning Models on The Edge Deploying Machine Learning Models on The Edge Yan Zhang, Mathew Salvaris Microsoft https://github.com/microsoft/deploy-MLmodels-on-iotedge Cloud Analytics Edge Analytics Device/Sensor Analytics


slide-1
SLIDE 1

Deploying Machine Learning Models on The Edge

slide-2
SLIDE 2

Deploying Machine Learning Models on The Edge

Yan Zhang, Mathew Salvaris Microsoft

slide-3
SLIDE 3

https://github.com/microsoft/deploy-MLmodels-on-iotedge

slide-4
SLIDE 4
slide-5
SLIDE 5

Device/Sensor Analytics Edge Analytics Cloud Analytics

slide-6
SLIDE 6

https://news.microsoft.com/en-in/features/forus- health-3nethra-ai-azure-iot-intelligent-edge- eyecare/

Example: Early Prediction of Failures on Circuit Boards Assembly Line

Fault detection system makes “Pass” or “Fail” prediction on each circuit board. The goal is to minimize or remove the need for human intervention.

slide-7
SLIDE 7
slide-8
SLIDE 8

One type of analytics is to use the trained ML model to perform predictive analytics.

slide-9
SLIDE 9

One type of analytics is to use the trained ML model to perform predictive analytics.

slide-10
SLIDE 10

https://www.docker.com Inst stead ad of runnin ing g the co code we run the C Contain ainer Application code, the libraries and dependencies needed to run the application Portable, self sufficient, run anywhere

slide-11
SLIDE 11
slide-12
SLIDE 12

Deploy an Object Detection service on Azure IoT Edge

  • object-detection-acv
  • object-detection-azureml

Link to repo: https://github.com/microsoft/deploy-MLmodels-on-iotedge

slide-13
SLIDE 13

https://docs.microsoft.com/en-us/azure/iot-edge/

slide-14
SLIDE 14

ML Module Deployment

Device configuration & management

Containers

Compute Runtime 2 4

Create and register container image

3 1

slide-15
SLIDE 15

Deployment manifest file deployment.json

Source: https://docs.microsoft.com/en-us/azure/iot-edge/module-composition

slide-16
SLIDE 16

Source: https://github.com/microsoft/ComputerVision/tree/master/scenarios

slide-17
SLIDE 17

https://docs.microsoft.com/en-us/azure/cognitive-services/ https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision- service/ https://docs.microsoft.com/en-us/azure/machine-learning/

slide-18
SLIDE 18
slide-19
SLIDE 19
slide-20
SLIDE 20
slide-21
SLIDE 21
slide-22
SLIDE 22
slide-23
SLIDE 23

Pipeline 1: object-detection-acv

Objective

  • Build docker image from Dockerfile
  • Register docker image in ACR
  • Deploy both Image-Capture module and People-Detection-Service module
slide-24
SLIDE 24
slide-25
SLIDE 25

After executing 01_AzureSetup.ipynb notebook

slide-26
SLIDE 26

For information required by the user such as subscription names, keys, passwords, resource group names, etc. 00_AMLSetup 03_BuildImage.ipynb

slide-27
SLIDE 27

make test-notebook3 For parameterization of notebooks use papermill. source activate deployment_env echo 03_BuildRegisterImage.ipynb papermill 03_BuildRegisterImage.ipynb

  • ut_03_BuildRegisterImage.ipynb \
  • - log-output \
  • - no-progress-bar \
  • k python3 \
  • p image1_name "img1“
  • p image2_name "img2"
slide-28
SLIDE 28

Pipeline 2: object-detection- azureml

Objective

  • Illustrate AzureML workspace
slide-29
SLIDE 29
  • bject-detection-azureml
slide-30
SLIDE 30
  • bject-detection-azureml
slide-31
SLIDE 31

1 2 3

slide-32
SLIDE 32

Azure ML Python SDK Deploy Azure IoT Edge modules from the Azure portal Deploy Azure IoT Edge modules from Visual Studio Code tutorial: deploy image classification model on Raspberry Pi

slide-33
SLIDE 33
slide-34
SLIDE 34

Thank you!