alexschultz / ReadToMe

Apache License 2.0
49 stars 14 forks source link

question regarding deploying on deeplens #3

Closed jlwebuser closed 5 years ago

jlwebuser commented 5 years ago

Hi, this is a really neat project - thanks for sharing.

I am new to the deeplens. I follow the sagemaker part, but I'm having a hard time figuring out exactly how to deploy the project.

Is the following correct?

in Deeplens Admin Page - Create a new blank project then Add the trained model (uploaded to S3) to the project

Add a new Function ? - this is where I get lost. I think I need to add ReadToMeLambda.py as the function to execute on deeplens, (along with the sounds properties). But I am not clear what other files need to go up, does the entire deeplens-lambda-read-to-me get uploaded into s3? and deployed somehow to the DeepLens.

any pointers are appreciated, sorry if I'm missing something obvious. Regards, john

alexschultz commented 5 years ago

Thanks John, The Lambda function includes all the content here: https://github.com/alexschultz/ReadToMe/tree/master/deeplens-lambda-read-to-me

You need to zip up those files and then upload the zip as the lambda function using the upload button in the Function Code section of the Lambda module.

see below

screen shot 2018-11-29 at 6 04 50 pm

Also, make sure you specify the correct handler to invoke in the Lambda i.e. "readToMeLambda.greengrass_infinite_infer_run"

The documentation for creating custom projects is here: https://docs.aws.amazon.com/deeplens/latest/dg/deeplens-custom-projects.html There is a section for how to reference an externally trained model as well as how to create the project to deploy to the DeepLens.

Sorry, it's not entirely obvious how to setup this project. Feel free to watch this repo. As soon as I get some time, I plan to make better instructions available that are clearer for people to follow along. Let me know if you get stuck in the meantime.

jlwebuser commented 5 years ago

Thanks for the quick reply and the info. Really appreciate the help. Best,

John t: @jlwebuser

On Thu, Nov 29, 2018 at 6:18 PM Alex Schultz notifications@github.com wrote:

Thanks John, The Lambda function includes all the content here:

https://github.com/alexschultz/ReadToMe/tree/master/deeplens-lambda-read-to-me

You need to zip up those files and then upload the zip as the lambda function using the upload button in the Function Code section of the Lambda module.

see below

[image: screen shot 2018-11-29 at 6 04 50 pm] https://user-images.githubusercontent.com/1521763/49263960-61567200-f401-11e8-8d73-f5f44c507c6d.png

Also, make sure you specify the correct handler to invoke in the Lambda i.e. "readToMeLambda.greengrass_infinite_infer_run"

The documentation for creating custom projects is here:

https://docs.aws.amazon.com/deeplens/latest/dg/deeplens-custom-projects.html There is a section for how to reference an externally trained model as well as how to create the project to deploy to the DeepLens.

Sorry, it's not entirely obvious how to setup this project. Feel free to watch this repo. As soon as I get some time, I plan to make better instructions available that are clearer for people to follow along. Let me know if you get stuck in the meantime.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alexschultz/ReadToMe/issues/3#issuecomment-443066559, or mute the thread https://github.com/notifications/unsubscribe-auth/AEQaGgB1F3IRA2eNCBl5fOsQh91VIOpFks5u0JVjgaJpZM4Y60KD .