Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

This is a implementation of the paper "A Neural Algorithm of Artistic Style" by Leon A. Gatys, Alexander S. Ecker, and Matthias Bethge

Source code by jcjohnson

Docker image by kChen


docker pull kchentw/neural-style


First you have to connect to the docker container:

docker run -i -t kchentw/neural-style /bin/bash

you should then be able to copy the files to the container:

docker cp <img_folder> <container name>:/root/neural-style/

you can find container name with docker ps command. Then you should be able to run the algorithm itself:

cd ~/neural-style
th neural_style.lua -gpu -1 -style_image  <image.jpg> -content_image <image.jpg>

Lastly you will want to copy the processed files from the container:

docker cp <container name>:/root/neural-style/  imgs