AWS Sagemaker tutorial | Build and deploy a Machine Learning API with Python

  Рет қаралды 7,432

Computer vision engineer

Computer vision engineer

Күн бұрын

Code: bit.ly/46Qk2Dt
Iris dataset: archive.ics.uci.edu/dataset/5...
XGBoost Hyperparameters: docs.aws.amazon.com/sagemaker...
🎬 Timestamps ⏱️
0:00 Intro
0:54 Create SageMaker notebook
3:46 Data preparation
16:27 Move data to S3 bucket
22:47 Create model
31:21 Train model
35:20 Deploy model
37:10 Create Lambda function
44:49 Create API
50:52 Test API
53:12 Outro
🌍 Community 👥
Join our Discord server: / discord
Support me on Patreon: / computervisionengineer
#sagemaker #aws #python #machinelearning #api #machinelearningapi

Пікірлер: 25
@ComputerVisionEngineer
@ComputerVisionEngineer 7 ай бұрын
Dive into a world of exclusive computer vision content on my Patreon: www.patreon.com/ComputerVisionEngineer 😃🙌
@dufreebell
@dufreebell Ай бұрын
Thank you, Felipe for taking the effort to making this video and sharing. Much appreciated! This is exactly what I needed for a predictive modeling project that I’m about to work on. I’m new to AWS, but not any more after watching your tutorial on KZbin. You took a simple example and walked through the steps that were not only easy to follow, but also gives lots of confidence. Once again - ton of Thanks! Had to come back to your video to subscribe 😊
@AdamNeel-jd4ue
@AdamNeel-jd4ue Ай бұрын
Thank you for going through the extra steps of making the lambda function, the api gateway, and showing how to pass and access data via the event!
@adamneel7100
@adamneel7100 Ай бұрын
One thing I'm still trying to work out is how to make sure any data you send to the endpoint for predictions is encoded and scaled the same way it was done to data used in training the model. As a user, I want to send regular data from a query and then encode any categorical data and have everything scaled and normalized within the lambda. I know we have those encoders outputted during training but I'm not sure it's so easy to load them into the lambda with something like a .pkl file.
@eongft4027
@eongft4027 6 ай бұрын
Most Awaited Video for me..Best Video to Understand Computer Vision Model Deployment..Thanks
@ComputerVisionEngineer
@ComputerVisionEngineer 6 ай бұрын
😃 Glad you enjoyed it! 🙂🙌
@bevansmith3210
@bevansmith3210 3 ай бұрын
Fantastic!
@HarpaAI
@HarpaAI 7 ай бұрын
🎯 Key Takeaways for quick navigation: 00:00 🚀 *Introduction and AWS SageMaker Overview* - Introduction to AWS SageMaker tutorial. - Important note about potential costs associated with AWS services. - Overview of the steps involved in the tutorial, including creating a notebook instance, data preparation, and deploying a model. 02:09 📊 *Data Preparation for Machine Learning* - Explanation of the importance of data preparation in machine learning. - Introduction to the Iris dataset, its features, and target classes. - Steps involved in data preparation, including downloading and converting the dataset to numerical values. 05:18 📦 *Downloading and Unzipping the Iris Dataset* - Demonstrating how to download the Iris dataset. - Showing the contents of the downloaded dataset. - Unzipping the downloaded dataset and displaying its files. 08:52 🔄 *Shuffling and Reordering the Dataset* - Explaining the importance of shuffling the dataset. - Demonstrating how to shuffle the dataset using pandas. - Showing the shuffled dataset. 12:12 🔄 *Changing the Label Column Index* - Explaining the necessity of changing the label column index. - Showing how to move the label column to the first position in the dataset. - Displaying the dataset with the modified column order. 15:23 🧩 *Splitting the Data into Training and Validation Sets* - Explaining the process of splitting the dataset into training and validation sets. - Demonstrating how to create the training and validation sets based on a specified split percentage. - Emphasizing the importance of this step for model training. 17:08 ☁️ *Moving Data into an S3 Bucket* - Creating an S3 bucket and specifying naming requirements. - Uploading the training and validation data to the S3 bucket. - Verifying the data's presence in the S3 bucket. 23:25 🤖 *Creating the Machine Learning Model Object* - Introduction to creating a machine learning model object. - Specifying the XGBoost algorithm for the model. - Initializing the SageMaker Estimator for model training. 23:54 🛠️ *Creating Sagemaker Model Container* - To build a machine learning model using Sagemaker, you need to create a container that defines the algorithm. You can choose from various algorithms, and in this section, the container for the XGBoost algorithm is being created. 25:09 🛡️ *Configuring Execution Role and Instance* - Specifying the execution role is crucial for Sagemaker to perform training. You also configure the number of instances and their types, as well as the storage size and location for saving the trained model. 29:05 ⚙️ *Setting Hyperparameters for Training* - Hyperparameters are essential for model training. In this section, you set hyperparameters for the XGBoost model, including the number of classes, number of rounds (epochs),and other specific parameters. 35:35 🚀 *Deploying the Trained Model* - After training the model, you deploy it using Sagemaker. This step involves creating an endpoint for making predictions with the trained model. 39:09 📡 *Calling the Deployed Model via Lambda and API Gateway* - To interact with the deployed model, you set up a Lambda function and an API Gateway. This allows you to send input data to the model and receive predictions in return. 46:13 🧪 *Testing the API Endpoint* - The final section demonstrates how to test the API endpoint using tools like Postman. Input data is sent to the API, and predictions are received, confirming that the entire pipeline is functional. Made with HARPA AI
@muhammadsohailabbas6343
@muhammadsohailabbas6343 Ай бұрын
Thanks a lot man for this wonderful stuff. This is my first working on AWS Sagemaker and this whoel cycle and already feelign confident that I have learned a lot. Next Lookign to Learng from your Yolo8 Video for object detection adn than to deploy that model using this cycle. If you have tutorial on this or planning to make one this would be great, Yolo model on AWS Sagemaker. But Thank You soo much man
@muhammadzakiahmad8069
@muhammadzakiahmad8069 6 ай бұрын
Would love to see deployment of a custom CNN Based model on AWS, becasue there are very few tutorials regarding it.
@ComputerVisionEngineer
@ComputerVisionEngineer 6 ай бұрын
Ok, noted. I will try to make some content about it. 🙌
@rohanshah8129
@rohanshah8129 7 ай бұрын
You're a gem! ♥️
@ComputerVisionEngineer
@ComputerVisionEngineer 7 ай бұрын
Thank you! 😃
@coreynolan4481
@coreynolan4481 2 ай бұрын
Great video as always...very informative! I have a related question... Have you been able to use Mediapipe inside Sagemaker? I'm using some of your ASL Prediction code and attempting to do in AWS...but mediapipe is presenting issues.
@songhiengvan
@songhiengvan 7 ай бұрын
thanks for this one!
@ComputerVisionEngineer
@ComputerVisionEngineer 7 ай бұрын
You are welcome! 🙌
@kajama.
@kajama. 5 ай бұрын
Can this model be used in an Oak-D to detect the images?
@rafaelribeiro2413
@rafaelribeiro2413 7 ай бұрын
Hello! how are you? Which is better for accurately identifying color? openCV or yolov8? Thank you for this channel, you are helping me a lot with my project.
@ComputerVisionEngineer
@ComputerVisionEngineer 7 ай бұрын
Hi, for identifying color I would use OpenCV. 🙌
@rafaelribeiro2413
@rafaelribeiro2413 7 ай бұрын
Ok, thanks!!@@ComputerVisionEngineer
@bostonmacosx
@bostonmacosx 8 күн бұрын
get_image_url doesn't appear to work correctly..
@Intellectualmind4
@Intellectualmind4 7 ай бұрын
🎉🎉🎉🎉❤❤❤❤
@ComputerVisionEngineer
@ComputerVisionEngineer 7 ай бұрын
😃🙌🎉🎉
@forlanbeckham1504
@forlanbeckham1504 7 ай бұрын
Make a video of deep fake detection using the face forensics++ dataset(image and video) if possible. And how to deploy this model and integrate into a website or mobile app.
@ComputerVisionEngineer
@ComputerVisionEngineer 7 ай бұрын
I will try to. 🙌
Image processing API with AWS API Gateway + Lambda | Computer vision tutorial
40:03
What is Amazon SageMaker?
14:26
mikegchambers
Рет қаралды 60 М.
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 66 МЛН
СҰЛТАН СҮЛЕЙМАНДАР | bayGUYS
24:46
bayGUYS
Рет қаралды 846 М.
Make me the happiest man on earth... 🎁🥹
00:34
A4
Рет қаралды 8 МЛН
LLD: Object Pool Design Pattern | Creational Design Pattern | Low Level Design
19:33
Concept && Coding - by Shrayansh
Рет қаралды 783
AWS SageMaker | Hands-on Tutorial For Beginners | Thinknyx
11:08
Thinknyx Technologies
Рет қаралды 1,3 М.
Model Monitoring with Sagemaker
25:50
Metal Toad
Рет қаралды 1,6 М.
Game On! - SageMaker STUDIO vs SageMaker NOTEBOOKS
11:53
mikegchambers
Рет қаралды 20 М.
Computer Vision Roadmap [UPDATED 2023] | How to become a computer vision engineer
16:31
RAG from the Ground Up with Python and Ollama
15:32
Decoder
Рет қаралды 22 М.
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 66 МЛН