Setting up your AWS IoT Greengrass Version 2 core device - Amazon Lookout for Vision

Setting up your AWS IoT Greengrass Version 2 core device

Amazon Lookout for Vision uses AWS IoT Greengrass Version 2 to simplify the deployment of the model component, Amazon Lookout for Vision Edge Agent component, and client application component to your AWS IoT Greengrass V2 core device. For information about the devices and hardware that you can use, see AWS IoT Greengrass Version 2 core device requirements.

Setting up your core device

Use the following information to set up your core device.

To set up your core device

  1. Verify that you have a GPU that supports CUDA. For more information, see Verify You Have a CUDA-Capable GPU.

  2. Setup CUDA, cuDNN, and TensorRT on your device by doing one of the following:

  3. Install the AWS IoT Greengrass Version 2 core software on your core device. For more information, see Install the AWS IoT Greengrass Core software in the AWS IoT Greengrass Version 2 Developer Guide.

  4. To read from the Amazon S3 bucket that stores the model, attach permission to the IAM role (token exchange role) that you create during AWS IoT Greengrass Version 2 setup. For more information, see Allow access to S3 buckets for component artifacts.

  5. Do one of the following to Install Python and a Python virtual environment onto the core device.

    • If you are deploying version 1.x of the Lookout for Vision Edge Agent, use the following command to install python 3.8 and python 3.8 virtual environment packages.

      sudo apt install python3.8 python3-venv python3.8-venv
    • If you are deploying version 0.x of the Lookout for Vision Edge Agent, use the following command to Install python 3.7 and python 3.7 virtual environment packages.

      sudo apt install python3.7 python3-venv python3.7-venv
  6. Use the following command to add the Greengrass user to the video group. This lets Greengrass deployed components access the GPU:

    sudo usermod -a -G video ggc_user
  7. (Optional) If you want to call Lookout for Vision Edge Agent API from a different user, add the required user to the ggc_group. This lets the user communicate with the Lookout for Vision Edge Agent over the Unix Domain socket:

    sudo usermod -a -G ggc_group $(whoami)