Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 990 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 990 Bytes

An Algorithm Of Artistic Style

This is Yet Another reimplementation of the original algorithm of Neural Artistic Style by Leon Gatys. However, this implementation has those nice features:

  • It's 100% Pytorch. No other dependencies for style.py. Though you can install Vermeille/limpid for better and faster convergence.
  • It also implements the color preservation given in Controlling Perceptual Factors of Neural Artistic Style (still by Gatys)
  • It embeds a web interface based on Flask. However this is not production ready. The server will just not respond while a picture is being computed. Just host it on your own cloud, and don't give the link to anyone :)

Running it

As a webservice:

python3 style_server.py

As a command line tool:

face.jpg

face

painting.png

painting

python3 style.py --content face.jpg --style painting.png --out out.jpg --size 720

out.jpg

out