docker_neural-style
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitattributes
Dockerfile
README.md

README.md

This is a implementation of the paper "A Neural Algorithm of Artistic Style" by Leon A. Gatys, Alexander S. Ecker, and Matthias Bethge http://arxiv.org/abs/1508.06576

Source code by jcjohnson https://github.com/jcjohnson/neural-style

Docker image by kChen https://hub.docker.com/r/kchentw/neural-style/

Setup

docker pull kchentw/neural-style

Run

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