Neural style art project
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 4 commits ahead of mgilbir:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
android
neural-style-cli
pb
protos
server
styles
tf
worker
.gitignore
README.md

README.md

Art project

Installation

To automate the instance creation and destruction we use terraform. If you are on OSX and use homebrew, you can get it with brew install terraform

Once that is done, you can check out this project, go to the terraform directory and create a new file called terraform.tfvars with the following content:

# EC2 Variables
access_key = "XXXXXX"
secret_key = "XXXXXX"
aws_key_name = "XXXXXX"

Where you will replace the XXXXXX with the correct values for your account.

To deploy the instance, run: terraform apply

After it completes, with terraform show you can see the IP where your brand new instance is listening and you can run the commands in the neural-style under the directory neural-style

An example of the command that you can run would be: th neural_style.lua -style_image input/blabla.jpg -content_image ~/my_image.jpg -print_iter 1 -gpu 0 -backend cudnn -cudnn_autotune

You can put images in the instance and take them out with scp.

When you are done and want to tear down the instance, run terraform destroy

REMEMBER TO DESTROY YOUR INSTANCES WHEN YOU'RE NOT USING THEM!