Skip to content

Latest commit

 

History

History
156 lines (73 loc) · 8.67 KB

UserManual.md

File metadata and controls

156 lines (73 loc) · 8.67 KB

How to use Panorama MLOPs

The following will teach you how to deploy a Human Detector APP on Panorama and monitor the results using Panorama MLOps

Upload a sample application to Panorama MLOps

Click on Stored Application on the left menu, the below table will have one default app which is ppe_panorama_app.zip

If you wish to upload other application, just click on New Application

Screen Shot 2022-09-25 at 7 13 43 PM

Choose uri and then put the bucket uri where you put your zip file of application at

Remember to zip the folder of application

Screen Shot 2022-09-25 at 7 13 33 PM

Start training a sample application for your Panorama

Click on Packaged Application on the left menu, the below table will be empty when you first deploy the PPE

Screen Shot 2022-08-24 at 2 24 28 PM

Click on New Package Here you have two option

  1. If you just want to use default model( coco dataset + yolov5 model ) + sample app then you can just select Packaging in Application Method, you can then skip input a s3 bucket and choose our sample application then click on Submit
  2. If you want to use your own bucket as the training dataset, then you can choose Training + Packaging and input the S3 Bucket with the training dataset you want, Since we use yolov5 as our model, you will need to prepare a bucket with
  • image / your_images.jpg
  • label / your_images_label.txt

then again choose the sample application and click on Submit

Screen Shot 2022-10-03 at 1 08 46 PM

After that you will see a field with training icon in your application, it means the training begin, you can do other steps and come back after the training finished

Screen Shot 2022-08-29 at 1 37 15 PM

The training has two phase, the first phase is Training ( If you only choose Packaging then this step will be skipped )

Screen Shot 2022-10-03 at 1 25 29 PM

The next phase is Packaging which will output a graph.json in your app-graph bucket which you could use to deploy Panorama,. When you see ModelStorage has s3://app-graph..., and your status is Completed then it means you are done with the training.

You will need to copy the ModelStorage s3://app-graph... in the Deploy with the PPE step

Add a Camera to your PPE

First click on the left menu, and there’s a Camera Config at the bottom Screen Shot 2022-08-24 at 2 28 02 PM

Click on the New Camera Config on the right side

Input the correspond information for your camera, and click on Submit

Screen Shot 2022-08-24 at 2 28 51 PM

After that you can see a camera created in your Camera Config, if you go to Panorama Console, you can see your camera being created under the Data sources

Screen Shot 2022-08-24 at 2 30 03 PM

Add a Panorama device to PPE

You will first need to create a Panorama device in Panorama Console, after that you will see your device running in the console

Then you will see the device you provisioned show up at your Device Config

Screen Shot 2022-08-24 at 2 30 39 PM

Deploy with PPE

After you finish Add a Camera to your PPE, Start training a sample application for your Panorama, and Add a Panorama device to PPE, you can go on with Deploy with PPE

Click on Deployed Application, then click on New Deployment on the right side

Screen Shot 2022-08-24 at 2 33 09 PM

Choose the correspond Device ID and Camera ID you just created, and pass the s3 url you get from Start training a sample application for your Panorama and you can randomly name your APP Name

After complete all the field, you can click on Submit

Screen Shot 2022-08-24 at 2 34 16 PM

After that, you can see your application status at Deployed Application or you can go to Panorama Console, and click on Deployed applications, you will see your APP is being deployed, please wait for 30-60 minutes, then see your Application is running with green light, you can go to next step

Screen Shot 2022-08-24 at 2 35 42 PM

Use the Panorama Application with PPE

After you Application is running with green light, you can go in front of your camera for 5 seconds , then it will start the detection and sent the data to your database

Monitor the activity

Click on Alert List

Screen Shot 2022-08-24 at 2 39 17 PM

You can see the detection is being return as series of data and image

So you can Monitor if there’s any alert activity or people not wearing mask or people without helmet depends on how you write your APP, in this case, it will be when there’s human walking by.

Verify the activity

Click on Alert Verify

Screen Shot 2022-08-24 at 2 41 06 PM

You can Manually verify if your model is actually being accurate about the activity at this page

If you think it’s not correct, you can Correct it by redefining the box it captured and Confirm the data

Screen Shot 2022-08-24 at 2 41 52 PM

Click on Confirm Data

Screen Shot 2022-08-24 at 2 42 16 PM

Then refresh the page, you can see your data successfully modified

Screen Shot 2022-08-24 at 2 42 37 PM

Export your data

You can retrain your data after you have manually confirmed them, so you can make your model to be more precise in the future

Click on Alert Export

Screen Shot 2022-08-24 at 2 44 33 PM

Go to your S3 Console and choose the bucket with s3://export-event-xxxxx ( or you can choose your own bucket

Screen Shot 2022-08-24 at 2 43 16 PM

Copy the S3 Url to the following field, then Submit

Screen Shot 2022-08-24 at 2 45 06 PM

Then you can see your dataset inside your bucket, and use the dataset to Retrain your Model

Screen Shot 2022-08-24 at 2 43 59 PM