Using an MXNet Neural Network to Style Images

Intermediate

18 students completed the lab in ~42m

Total available time: 1h:10m

Be the first to rate this lab!

Lab Overview

Neural networks have been used for many applications throughout the deep learning revolution. In this Lab, you will use the AWS Deep Learning AMI using a GPU instance (p2.xlarge). You will perform neural style transfers - an algorithm for combining the content of one image with the style of another image. This process involves using convolutional neural networks (CNN). The code you will run is implemented in Python using the MXNet deep learning framework. Additionally, you will setup a custom Python script to aggregate GPU performance data and publish it into Amazon CloudWatch. You will then be able to examine the performance and cost associated with the CNN as it runs.

Lab Objectives

Upon completion of this Lab you will be able to:

  • Perform neural style transfers using the AWS Deep Learning AMI
  • Publish GPU metrics to Amazon CloudWatch using a Python script
  • Examine GPU performance in Amazon CloudWatch 

Lab Prerequisites

You should be familiar with:

  • Working with Linux on the command-line
  • Graphics processing unit (GPU) concepts
  • Knowledge of the Python programming language is beneficial, but not required

Lab Environment

Before completing the Lab instructions, the environment will look as follows:

After completing the Lab instructions, the environment should look similar to:

Follow these steps to learn by building helpful cloud resources

Logging in to the Amazon Web Services Console

Your first step to start the Lab experience

Connecting to the Virtual Machine using SSH

Create a secure connection to a remote machine

Using the Neural Network to Style an Image

Use the neural network to artistically style an image

Downloading the Images Styled by the Neural Network

Download the images to view on your local computer

Publishing GPU metrics to Amazon CloudWatch

Use a script to publish GPU metrics to Amazon CloudWatch

Inspecting the GPU Metrics in Amazon CloudWatch

Inspect the GPU metrics using the AWS Management Console