Skip to content

Commit

Permalink
Slight change to README
Browse files Browse the repository at this point in the history
  • Loading branch information
kaishengtai committed Sep 3, 2015
1 parent af82171 commit d9aa98a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
This is a Torch7 implementation of the method described in the paper
'A Neural Algorthm of Artistic Style' by Leon Gatys, Alexander Ecker, and Matthias Bethge (http:https://arxiv.org/abs/1508.06576).

![](examples/starry_eiffel_short.gif)

[(Longer animation)](http:https://gfycat.com/UnawareUnfortunateEkaltadeta)

## Dependencies

- [Torch7](https://github.com/torch/torch7)
Expand Down Expand Up @@ -62,23 +66,17 @@ qlua main.lua --style <style.jpg> --content <content.jpg> --size 300

## Examples

The Eiffel Tower in the style of Van Gogh's *Starry Night*:

![](examples/starry_eiffel_short.gif)

[Longer animation](http:https://gfycat.com/UnawareUnfortunateEkaltadeta)

And in the style of Edvard Munch's *The Scream*:
The Eiffel Tower in the style of Edvard Munch's *The Scream*:

![](examples/eiffel_scream_short.gif)

[Longer animation](http:https://gfycat.com/WebbedValuableGreyhounddog)
[(Longer animation)](http:https://gfycat.com/WebbedValuableGreyhounddog)

Picasso-fied Obama:

![](examples/picasso_obama_short.gif)

[Longer animation](http:https://gfycat.com/WeakPettyDevilfish)
[(Longer animation)](http:https://gfycat.com/WeakPettyDevilfish)

## Implementation Details

Expand Down
22 changes: 11 additions & 11 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ cmd:text()
cmd:text('A Neural Algorithm of Artistic Style')
cmd:text()
cmd:text('Options:')
cmd:option('--model', 'vgg', '{inception, vgg}. Model to use.')
cmd:option('--style', 'none', 'Path to style image')
cmd:option('--content', 'none', 'Path to content image')
cmd:option('--style_factor', 2e9, 'Trade-off factor between style and content')
cmd:option('--num_iters', 500, 'Number of iterations')
cmd:option('--size', 500, 'Length of image long edge (0 to use original content size)')
cmd:option('--display_interval', 20, 'Iterations between image displays (0 to suppress display)')
cmd:option('--smoothness', 1e-4, 'Total variation norm regularization strength (higher for smoother output)')
cmd:option('--init', 'image', '{image, random}. Initialization mode for optimized image.')
cmd:option('--backend', 'cunn', '{cunn, cudnn}. Neural network CUDA backend.')
cmd:option('--optimizer', 'lbfgs', '{sgd, lbfgs}. Optimization algorithm.')
cmd:option('--model', 'vgg', '{inception, vgg}. Model to use.')
cmd:option('--style', 'none', 'Path to style image')
cmd:option('--content', 'none', 'Path to content image')
cmd:option('--style_factor', 2e9, 'Trade-off factor between style and content')
cmd:option('--num_iters', 500, 'Number of iterations')
cmd:option('--size', 500, 'Length of image long edge (0 to use original content size)')
cmd:option('--display_interval', 20, 'Iterations between image displays (0 to suppress display)')
cmd:option('--smoothness', 1e-4, 'Total variation norm regularization strength (higher for smoother output)')
cmd:option('--init', 'image', '{image, random}. Initialization mode for optimized image.')
cmd:option('--backend', 'cunn', '{cunn, cudnn}. Neural network CUDA backend.')
cmd:option('--optimizer', 'lbfgs', '{sgd, lbfgs}. Optimization algorithm.')
opt = cmd:parse(arg)
if opt.size <= 0 then
opt.size = nil
Expand Down

0 comments on commit d9aa98a

Please sign in to comment.