Fast Neural Style Transfer
Neural Style Transfer is the process of using Deep Neural Networks to migrate the semantic content of one image to different styles. Fast Neural Style Transfer (FST) can finish this process in the order of seconds.
Usage
This gist implements Fast Style Transfer in Owl, and provides a simple interfaces to use. Here is an example:
#zoo "f937ce439c8adcaea23d42753f487299"
FST.list_styles ();; (* show all supported styles *)
FST.run ~style:1 "path/to/content_img.png" "path/to/output_img.jpg"
The run
function mainly takes one content image and output to a new image file, the name of which is designated by the user. The image chould be of any popular formats: jpeg, png, etc. This gist contains exemplar content images for you to use.
Current we support six art styles:
- "Udnie" by Francis Picabia
- "The Great Wave off Kanagawa" by Hokusai
- "Rain Princess" by Leonid Afremov
- "La Muse" by Picasso
- "The Scream" by Edvard Munch
- "The shipwreck of the Minotaur" by J. M. W. Turner
Prerequisite
This application relies on the tool ImageMagick
to manipulate image format conversion and resizing. Please make sure it is installed. E.g. on Ubuntu:
sudo apt-get install imagemagick
Limit
FST is limited in styles. If you want to try some styles that are not listed here, please refer to our Neural Style Transfer gist.
Here shows the FST results for the example image with different styles.