Giter Site home page Giter Site logo

ml-edge-getting-started's Introduction

Machine Learning at the edge getting started

Here you can find samples, tutorials, reference architectures and other resources to help you to build your own ML@Edge (Machine Learning at the Edge) solution at AWS.

Tutorials/Reference implementations

Use Case Description
How to detect anomalies in "Wind Turbines" in real-time? This sample provides an end-to-end solution that manages the lifecycle of an anomaly detection model, deployed to a simulated fleet of wind turbine
How to classify images in the browser? This sample provides an end-to-end solution that manages the lifecycle of an image detection model, deployed to a local device (laptop, mobile)

Contributing

If you have a question related to a business challenge that must be answered by an accelerated AI/ML solution, like the content in this repo, then you can contribute. You can just open an issue with your question or if you have the skills, implement a solution (tutorial, workshop, etc.) using Jupyter notebooks (for SageMaker Studio or Notebook Instances) and create a pull request. We appreciate your help.

Please refer to the CONTRIBUTING document for further details on contributing to this repository.

ml-edge-getting-started's People

Contributors

amazon-auto avatar brunopistone avatar dependabot[bot] avatar hasanp87 avatar jwoehrle avatar krokoko avatar samir-souza avatar vikeshpandey avatar vrakesh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ml-edge-getting-started's Issues

samples/onnx_accelerator_sample1: missing instructions for installing dependencies

Describe the issue

I'm trying to follow the process explained in samples/onnx_accelerator_sample1/Greengrass.md, however during the step npx projen I receive the following error message:

โฏ npx projen
๐Ÿ‘พ default | python .projenrc.py
Traceback (most recent call last):
File "/Users/<...>/development/ml-edge-getting-started/samples/onnx_accelerator_sample1/.projenrc.py", line 18, in
from projen.awscdk import AwsCdkPythonApp
ModuleNotFoundError: No module named 'projen'

after creating a new python venv and running pip install -r requirements.txt and pip install -r requirements-dev.txt it works.

It seems like the installation of the python dependencies is missing from the instructions?

Links

samples/onnx_accelerator_sample1/Greengrass.md

samples/onnx_accelerator_sample1: CodeBuild fails during build_deployment_package.py

Describe the bug

I'm running through samples/onnx_accelerator_sample1/Greengrass.md

After the model is approved, the CodeBuild project is triggered. However it fails with the following:

Traceback (most recent call last):
File "/codebuild/output/src3912502068/src/build_deployment_package.py", line 66, in
response = client_sm.describe_model_package(ModelPackageName=model_package_arn)
File "/root/.pyenv/versions/3.9.5/lib/python3.9/site-packages/botocore/client.py", line 508, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/root/.pyenv/versions/3.9.5/lib/python3.9/site-packages/botocore/client.py", line 911, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the DescribeModelPackage operation: User: arn:aws:sts:::assumed-role/onnxacceleratorsampleone-packageonnxmodelRoleFE70-4AT26K2V5LCR/AWSCodeBuild-15a8a3d5-ab63-4825-954f-127a14d295ef is not authorized to perform: sagemaker:DescribeModelPackage on resource: arn:aws:sagemaker:::model-package/modelPackageGroupTurbine/1 because no identity-based policy allows the sagemaker:DescribeModelPackage action

Expected Behavior

CodeBuild succeeds

Current Behavior

codebuild fails with IAM permission error

Reproduction Steps

run through the steps described in samples/onnx_accelerator_sample1/Greengrass.md

Once the model is approved the CodeBuild project will start and fail with the above error message.

Possible Solution

this seems to be caused by case sensitiviy missmatch between the actual model package name and the iam policy.

The model package name is modelPackageGroupTurbine but the IAM policy refers to the resource ...:model-package/modelpackagegroupturbine/*"

fix the CodeBuild IAM Role to match the

resourcarn:aws:sagemaker:::model-package/modelPackageGroupTurbine/1

Additional Information/Context

it seems that the lower case is intentionally created, there is a .lower() call when the IAM policy is created:

'arn:aws:sagemaker:'+ Aws.REGION+':'+ Aws.ACCOUNT_ID+':model-package/'+cfn_model_package_group.model_package_group_name.lower()+'/*' #the model group name needs to be lowercase

Sample version

No response

Region experiencing the issue

eu-west-1

Code modification

no modifications

Other information

No response

Service quota

  • I have reviewed the service quotas for this sample

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.