Starting your Amazon Lookout for Vision model
Before you can use an Amazon Lookout for Vision model to detect anomalies, you must first start the model. You start a model by calling the StartModel API and passing the following:
-
ProjectName – The name of the project that contains the model that you want to start.
-
ModelVersion – The version of the model that you want to start.
-
MinInferenceUnits – The minimum number of inference units. For more information, see Running your trained Amazon Lookout for Vision model.
The Amazon Lookout for Vision console provides example code that you can use to start and stop a model.
You are charged for the amount of the time that your model is running. To stop a running model, see Stopping your Amazon Lookout for Vision model.
Starting your model (console)
The Amazon Lookout for Vision console provides a AWS CLI command that you can use to start a model. After the model starts, you can start detecting anomalies in images. For more information, see Detecting anomalies in an image.
To start a model (console)
-
If you haven't already done so, do the following:
-
Create or update an IAM user with permissions to access Amazon Lookout for Vision. For more information, see Step 3: Set up permissions.
-
Install and configure the AWS CLI and the AWS SDKs. For more information, see Step 5: Set up the AWS CLI and AWS SDKs.
-
-
Open the Amazon Lookout for Vision console at https://console.aws.amazon.com/lookoutvision/
. -
Choose Get started.
-
In the left navigation pane, choose Projects.
-
On the Projects resources page, choose the project that contains the trained model that you want to start.
-
In the Models section, choose the model that you want to start.
-
On the model's details page, choose the Use model tab.
-
Under Code snippets choose AWS CLI commands.
-
Copy the AWS CLI command that calls
start-model
. -
At the command prompt, enter the
start-model
command that you copied in the previous step. -
In the console, choose Models in the left navigation page.
-
Check the Status column for the current status of the model, When the status is Hosted, you can use the model to detect anomalies in images. For more information, see Detecting anomalies in an image.
Starting your Amazon Lookout for Vision model (SDK)
You start a model by calling the StartModel operation.
A model might take a while to start. You can check the current status by calling DescribeModel. For more information, see Viewing your models.
To start your model (SDK)
-
If you haven't already done so, do the following:
-
Create or update an IAM user with permissions to access Amazon Lookout for Vision. For more information, see Step 3: Set up permissions.
-
Install and configure the AWS CLI and the AWS SDKs. For more information, see Step 5: Set up the AWS CLI and AWS SDKs.
-
-
Use the following example code to start a model.
-
If the output of the code is
Model is hosted and ready for use
, you can use the model to detect anomalies in images. For more information, see Detecting anomalies in an image.