Skip to content

Executes the neural style transfer on an azure ND GPU machine with 24 GB GPU RAM to create images up to 1900px without tiling

Notifications You must be signed in to change notification settings

sbetzin/neural-style-azure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

neural-style-azure

This is a docker wrapper of a tensorflow implementation with azure storage connection of several techniques described in the papers:

the main goal of project is to create a docker container running on a gpu host that connects itself to an azure storage queue waiting for new jobs. If there is a new job it will download all needed images from an azure storage blob storage and uses the jobs transformation parameter to create the neural style image. It will create two images. the first uses the colors of the style image. the seconds uses the color of the original image. both results are then uploaded to another azure blob storage. With this approach you can run several pysical nvidia gpu machines (or azure n-series gpu machines) to create a whole cluster to process batch neural style transformations.

Requirements

for host computer

  • nvidia drivers
  • nvidia cuda
  • nvidia docker
  • docker

for running the container

Setup Host

detailed instructions to setup a host environment How to setup the host

Run the conainer

Important!!! Make sure the environment variable "AzureStorageConnectionString" contains the connection string for the required azure storage account

There are two possibilities how to start up the container

1. using docker command

you can use the nvidia-docker command to start up the container. the image is available on public host sbetzin/neural-style-tensorflow

sudo nvidia-docker run -d -e AzureStorageConnectionString --name neural-style-tensorflow --restart=unless-stopped  sbetzin/neural-style-tensorflow

this command downloads the image from the public repository and starts it as deamon (-d --restart=unless-stopped)

2. clone repository and use make

if you downloaded this repository as described in the setup host instructions then you can just change to the docer repository

cd neural-style-azure/docker/neural-style-tensorflow-docker

and then just start it with

sudo make start

please note that the make file has other commands as well.

About

Executes the neural style transfer on an azure ND GPU machine with 24 GB GPU RAM to create images up to 1900px without tiling

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages