Deploy a Deep Learning model on AWS Lambda using Serverless framework

  Рет қаралды 10,304

Ahmed Besbes

Ahmed Besbes

Күн бұрын

Пікірлер: 25
@URKCSMANCHIKANTIRYANRAKESH
@URKCSMANCHIKANTIRYANRAKESH 3 жыл бұрын
Hey when i run the sls deploy command , i get this error what do I do ? TypeError: Cannot convert undefined or null to object at Function.entries () at getConfigsByWarmer (C:\Users yan\OneDrive\Desktop\Cantoonify_Model\cartoonify ode_modules\serverless-plugin-warmup\src\config.js:170:34) at WarmUp.configPlugin (C:\Users yan\OneDrive\Desktop\Cantoonify_Model\cartoonify ode_modules\serverless-plugin-warmup\src\index.js:82:10) at C:\Users yan\AppData\Roaming pm ode_modules\serverless\lib\classes\PluginManager.js:501:55
@uvsingh
@uvsingh 4 жыл бұрын
Hello Mr. Ahmed first of all thanks for sharing this project with us but it could have been better if you either increase the font size or zoom a little while coding along. Thanks.
@AhmedBesbes
@AhmedBesbes 4 жыл бұрын
Thanks for the feedback, will do this next time :)
@maksimkazanskii4550
@maksimkazanskii4550 3 жыл бұрын
Excellent job!
@blanky_nap
@blanky_nap 2 жыл бұрын
Another useful video! One question:why don't you use AWS CDK to provide infustructure?
@MadhavThaker
@MadhavThaker 3 жыл бұрын
This is a great tutorial. Can you elaborate on how you built your docker file?
@AhmedBesbes
@AhmedBesbes 3 жыл бұрын
I didn't build any docker file. Building the docker image was automatically done by the serverless framework
@onesmusnyakotyo5953
@onesmusnyakotyo5953 3 жыл бұрын
Thank you for the tutorial, am facing - An error occurred: ServerlessDeploymentBucket - API: s3:CreateBucket Access Denied. Thank you all for your help.
@daniellampert1744
@daniellampert1744 3 жыл бұрын
Thank you so much for the video Ahmed! We are trying to customize the code to work on a Tensorflow model. We are getting this error and am not sure how to proceed. An error occurred: TransformImageLambdaFunction - Resource handler returned message: "Unzipped size must be smaller than 262144000 bytes (Service: Lambda, Status Code: 400, Request ID: 181e0b75-d624-44d5-99fb-9942c819c03d, Extended Request ID: null)" (RequestToken: d04b5775-eea9-ad16-4a8b-72c2703f1f6b, HandlerErrorCode: InvalidRequest).
@shrayr.goswami1963
@shrayr.goswami1963 3 жыл бұрын
I get 'Recoverable error occurred (Connection timed out after 120000ms), sleeping for ~4 seconds. Try 1 of 4' on sls deploy
@shrayr.goswami1963
@shrayr.goswami1963 3 жыл бұрын
i get this error after a few minutes. last update is always 'uploading service warmupPlugin.zip ..... '
@AhmedBesbes
@AhmedBesbes 3 жыл бұрын
@@shrayr.goswami1963 I suggest removing the warmup plugin and redeploy
@ikechukwuhenryuwakwe3668
@ikechukwuhenryuwakwe3668 3 жыл бұрын
Hello Ahmed. Thank you for the video. I am having errors in deployment. It says TypeError: Cannot convert undefined or null to object
@AhmedBesbes
@AhmedBesbes 3 жыл бұрын
Can you give more details about the error ?
@ikechukwuhenryuwakwe3668
@ikechukwuhenryuwakwe3668 3 жыл бұрын
TypeError: Cannot convert undefined or null to object at Function.entries () at getConfigsByWarmer (C:\Users\..\.. ode_modules\serverless-plugin-warmup\src\config.js:170:34) at WarmUp.configPlugin (C:\Users\..\.. ode_modules\serverless-plugin-warmup\src\index.js:80:10) This is just one of the numerous points of error in the node modules. The files affected include the config.js file of the serverless plugin warmup, some bluebird.js files and some random files in the same node_modules.
@AhmedBesbes
@AhmedBesbes 3 жыл бұрын
@@ikechukwuhenryuwakwe3668 never faced this error before but i found this on google forum.serverless.com/t/getting-cannot-convert-undefined-or-null-to-object-when-running-sls-deploy/9267/3
@sebawaves
@sebawaves 3 жыл бұрын
hi Ikechukwu, did you solved the problem?, here im having exactly the same problem, just visited the error on the google link ahmed posted but no solution there
@valerysalov8208
@valerysalov8208 4 жыл бұрын
Github code for this please.
@AhmedBesbes
@AhmedBesbes 4 жыл бұрын
sure: github.com/ahmedbesbes/cartoonify
@filldo7055
@filldo7055 3 жыл бұрын
Asalamalakum brother Ahmed, Thanks for uploading such a terrific project. I have been facing some errors when i tried to replicate this project after deployment i got a url but when i pasted it in the notebooks and ran it i kept getting this error , would really appreciate your help, Thank you. KeyError: 'output' --------------------------------------------------------------------------- KeyError Traceback (most recent call last) in ----> 1 image = response.json()["output"] 2 3 image = image[image.find(",")+1:] 4 dec = base64.b64decode(image + "===") 5 KeyError: 'output'
@vishnuteja80
@vishnuteja80 3 жыл бұрын
I also got the same error did you solved the error?
@pranjalk7662
@pranjalk7662 3 жыл бұрын
That is because there is an internal server error. I haven't been able to locate what the problem is, it seems to be in the plugins that we are using but I couldn't find a solution for it online.
@PiotrPiotr-mo4qb
@PiotrPiotr-mo4qb 3 жыл бұрын
@@pranjalk7662 It is because you did not removed "/src" from serverless.yml. On the AWS you can always see the logs
@DhanushH-zo2lk
@DhanushH-zo2lk 3 жыл бұрын
@@PiotrPiotr-mo4qb How do we solve it ? Just remove /src and re deploy?
@DhanushH-zo2lk
@DhanushH-zo2lk 3 жыл бұрын
@@pranjalk7662 got the solution??
How to build a React App to interact with a machine learning model
17:54
Simple Serverless FastAPI with AWS Lambda
17:04
DeadbearCode
Рет қаралды 38 М.
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
Building a Serverless Machine Learning Inference API with AWS Lambda
51:25
Deploy FastAPI on AWS Lambda ⚡ Serverless hosting!
22:24
pixegami
Рет қаралды 41 М.
Deploy your own pre-trained Keras model to aws Sagemaker
15:09
The Best Way to Deploy AI Models (Inference Endpoints)
5:48
Arseny Shatokhin
Рет қаралды 15 М.
Phil Basford on Deep Learning Container in lambda running TensorFlow
17:58
Inawisdom, a Cognizant company
Рет қаралды 357
Lambda Pricing Explained in 5 minutes
4:59
Unus AWS
Рет қаралды 426
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54