Code Monkey home page Code Monkey logo

ml-edge-getting-started's Introduction

ML@Edge with SageMaker - Getting Started Examples

This repository contains examples of different models, showing how they can be built using SageMaker and prepared for deployment at the edge.

In this repository, we will use Amazon Sagemaker to train the models, Sagemker-Neo to compile them Sagemaker Edge Manager to packaged them. Once the package is created, it can be deployed at the edge devices(for example: Jetson Xavier Jetpack 4.4.1)

Let us understand the structure of the repository:

  • models folder contains one sub-folder per model/framework type. These subfolders contain a jupyter notebook which does the following:

    • Download the model from the official repository
    • Train the model on a sample dataset
    • Compile the model for an edge device(in this case, a Jetson Xavier Jetpack 4.4.1)
    • Create a SageMaker Edge Manager Packaging job to prepare the deployment package
  • sagemaker_edge_manager_agent_docker folder contains the details on how to build a docker container for SageMaker Edge Agent.

Below is the list of models with their destination hardware platform, processor and other details.

Board Model Processor Cold start (no TRT cache) Cold start time (TRT cache) Inference time
Jetson Nano Tiny Yolov4 416x416 80 classes GPU ~98.02s - ~73ms
Jetson Nano Tiny Yolov4 416x416 80 classes CPU ~0.86s - ~1503ms
Jetson Xavier Tiny Yolov4 416x416 80 classes GPU x - x
Jetson Xavier Tiny Yolov4 416x416 80 classes CPU x - x

SageMaker Edge Manager Docker container

Instructions of how to create a docker container for the ARM64 agent + Nvidia devices -> Nano/Xavier.

Security

See CONTRIBUTING for more information.

License

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

ml-edge-getting-started's People

Contributors

brunopistone avatar samir-souza avatar vikeshpandey avatar amazon-auto avatar hasanp87 avatar vrakesh 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.