You can stop running an Amazon Rekognition Custom Labels model by using the console or by using the StopProjectVersion operation.
Topics
Stopping an Amazon Rekognition Custom Labels model (Console)
Use the following procedure to stop a running Amazon Rekognition Custom Labels model with the console. You can stop the model directly from the console or use the AWS SDK code provided by the console.
To stop a model (console)
Open the Amazon Rekognition console at https://console.aws.amazon.com/rekognition/
. Choose Use Custom Labels.
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 stop.
In the Models section, choose the model that you want to stop.
Choose the Use model tab.
In the Start or stop model section, choose Stop.
-
In the Stop model dialog box, enter stop to confirm that you want to stop the model.
Choose Stop to stop your model.
Choose your project name at the top of the page to go back to the project overview page.
In the Model section, check the status of the model. The model has stopped when the model status is STOPPED.
Stopping an Amazon Rekognition Custom Labels model (SDK)
You stop a model by calling the StopProjectVersion API and passing the
Amazon Resource Name (ARN) of the model in the ProjectVersionArn
input parameter.
A model might take a while to stop. To check the current status, use DescribeProjectVersions
.
To stop a model (SDK)
-
If you haven't already done so, install and configure the AWS CLI and the AWS SDKs. For more information, see Step 4: Set up the AWS CLI and AWS SDKs.
Use the following example code to stop a running model.
Change the value of
project-version-arn
to the ARN of the model version that you want to stop.aws rekognition stop-project-version --project-version-arn "
model arn
" \ --profile custom-labels-access