How to launch and work with EC2-AWS instances

Introduction

Outline

The goal of this module is to help people set up their own AWS infrastructure to train and fine-tune CNNs so they can implement state-of-the-art computer vision techniques in their own work.

Steps:

  1. Create an AWS account.

  2. Create an EC2 instance.

  3. Access your EC2 instance.

  4. Run a jupyter notebook server in the instance.

  5. Connect to the jupyter notebook from your local machine.

  6. Stopping the EC2 instance.

1. Create an AWS account

2. Create an EC2 instance

What are EC2 instances? These are servers mantained by AWS that you can use remotely. It's like renting a computer from Amazon for as long as you need it. These computers, however, do not have a keyboard or a mouse, so you'll have to interact with them remotely and programatically from your local machine. We'll give you some hints on how to do this. But first, let's go through how to create an instance with everything already set up to implement state-of-the-art computer vision techniques.

3. Access your EC2 instance.

4. Run a jupyter notebook server in the instance.

One way to take advantage of the computing power of this instance with a GPU is to write a script locally and then send it to and execute it in the instance. Another more user-friendly option is to run a jupyter notebook server in the instance and then connect to it from your local machine. This will allow you to type code (e.g. Python code) in your machine that will get executed in the instance in sections.

5. Connect to the jupyter notebook from your local machine.

6. Important: Stopping your EC2 instance.

It's very important to stop your EC2 instance when you are done for the day. Otherwise, you will continue to be charged.