Coder Social home page Coder Social logo

hackensun / aws-iot-greengrass-v2-deploy-nvidia-deepstream Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/aws-iot-greengrass-v2-deploy-nvidia-deepstream

0.0 0.0 0.0 89.72 MB

How to use AWS IoT Greengrass V2 for Image classification and Video Analytics Pipelines

License: MIT No Attribution

Shell 4.93% C++ 24.42% Python 29.27% C 41.37%

aws-iot-greengrass-v2-deploy-nvidia-deepstream's Introduction

Using Image Inference and Video Analytics Pipelines with Greengrass V2 and NVIDIA Jetson

This repository will give you concrete examples to get starting using GreengrassV2 to build Image Inferencing and Video Analytics Pipelines

Technologies used:

  • GreengrassV2
  • NVIDIA Deepstream 5.0
  • Sagemaker NEO DLR

Prerequisites

Image Inference

PLEASE NOTE: This deployment may install/modify components on your Jetson device. It will install some python packages outside of a virtual environment. This is because python-opencv is specially installed as part of Jetpack 4.4 and the debian package may run for a long period of time and not succesfully complete (numpy can also take a long time to install).

replace GreengrassCore where mentioned run:

 cd ~/GreengrassCore
 aws greengrassv2 create-component-version --inline-recipe fileb://recipes/aws.greengrass.JetsonDLRImageClassification-1.0.0.json
 aws greengrassv2 create-component-version --inline-recipe fileb://recipes/variant.Jetson.DLR-1.0.0.json
 aws greengrassv2 create-component-version --inline-recipe fileb://recipes/variant.Jetson.ImageClassification.ModelStore-1.0.0.json

deploy:

  • Go to AWS Iot Core Console (https://console.aws.amazon.com/iot/home)
  • Choose Greengrass -> Components
  • You should see the components you created via the AWS CLI.
  • Choose any one of the three components you created
  • Choose 'Deploy'
  • Choose 'Create new deployment' then choose 'Next'
  • For 'Name' give the deployment a name
  • For 'Target type' enter the name of your device core (https://console.aws.amazon.com/iot/home?region=us-east-1#/greengrass/v2/cores)
  • Choose 'Next'
  • On the 'Select Components' screen, make sure to select all 3 of the components you created and Choose 'Next'
  • On the 'Configure Components' screen, choose Next
  • On the 'Configure advanced settings' screen, choose Next
  • On the 'Review' screen choose 'Deploy'

success: Now let's go to the MQTT Test client in the AWS Console to see our inference working:

  • Inside of IoT Core console, choose 'Test' then 'MQTT Test Client'
  • Subscribe to topic 'demo/topic'
  • You should see messages looking like the following:
{
  "message": "{\"class\":\"Chihuahua\",\"confidence\":\"17.977331\"}",
  "timestamp": "2021-01-06T18:30:05"
}

troubleshooting:

  • if you get a failure, check the 'greengrass.log' file on your Jetson device in /greengrass/v2/logs/greengrass.log and /greengrass/v2/logs/aws.greengrass.JetsonDLRImageClassification.log

Deepstream Video Analytica Pipelines

License

This library is licensed under the MIT-0 License. See the LICENSE file.

aws-iot-greengrass-v2-deploy-nvidia-deepstream's People

Contributors

scottrfrancis avatar rvanderwerf avatar yuxiny2586 avatar amazon-auto 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.