Augmented AI (A2I) with Amazon Rekognition

In this tutorial, we will show how you can use Amazon A2I directly within your API calls to Amazon Rekognition’s Detect Moderation Labels API. Use the Amazon SageMaker Notebook launched in Lab 1.

To run this lab, you need to complete prerequisite section from Lab 1

Download necessary notebooks

  1. On AWS Management Console, under services search for “Amazon SageMaker”, look for an instance with name “RekNotebookInstance-” prefix

  2. Under Actions, click on “Open Jupyter”

  3. Under the “Files” tab, Open “New” dropdown and click on “Terminal”

  4. In the terminal tab, type

cd SageMaker/
  1. Type
git clone https://github.com/aws-samples/amazon-a2i-sample-jupyter-notebooks.git
  1. Open “amazon-a2i-sample-jupyter-notebooks” folder created under “Files” tab

  2. Navigate to “Amazon-A2I-and-Rekognition-DetectModerationLabels.ipynb” notebook. Click on the notebook

  3. Follow the instructions in the notebook to understand how you can integrate human review with Amazon Rekognition

  4. In order to execute each cell, click on the “Run” button at the top or press “Shift+Enter”

Make sure you use “conda_python3” kernel and execute all cells in order.