Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 2.03 KB

AWS-Deployment-Guide.md

File metadata and controls

22 lines (16 loc) · 2.03 KB

AWS-Deployment Guide

There are two ways of deploying the CVAT.

  1. On Nvidia GPU Machine: Tensorflow annotation feature is dependent on GPU hardware. One of the easy ways to launch CVAT with the tf-annotation app is to use AWS P3 instances, which provides the NVIDIA GPU. Read more about P3 instances here. Overall setup instruction is explained in main readme file, except Installing Nvidia drivers. So we need to download the drivers and install it. For Amazon P3 instances, download the Nvidia Drivers from Nvidia website. For more check Installing the NVIDIA Driver on Linux Instances link.

  2. On Any other AWS Machine: We can follow the same instruction guide mentioned in the installation instructions. The additional step is to add a security group and rule to allow incoming connections.

For any of above, don't forget to add exposed AWS public IP address or hostname to docker-compose.override.yml:

version: "2.3"
services:
  cvat_proxy:
    environment:
      CVAT_HOST: your-instance.amazonaws.com

In case of problems with using hostname, you can also use the public IPV4 instead of hostname. For AWS or any cloud based machines where the instances need to be terminated or stopped, the public IPV4 and hostname changes with every stop and reboot. To address this efficiently, avoid using spot instances that cannot be stopped, since copying the EBS to an AMI and restarting it throws problems. On the other hand, when a regular instance is stopped and restarted, the new hostname/IPV4 can be used in the CVAT_HOST variable in the docker-compose.override.yml and the build can happen instantly with CVAT tasks being available through the new IPV4.