The code needed to train the model is detailed in the https://nbviewer.jupyter.org/github/tripathiGithub/Fast-Neural-Style/blob/master/faststyletransfer.ipynb notebook.
(Use this link only to see the code instead of using ipynb from github directly becacuse github does not renders ipynb files properly) Note: Training has been shown only for few styles to keep the size of ipynb file small
Neural style transfer is an optimization technique used to take two images—a content image and a style reference image (such as an artwork by a famous painter)—and blend them together so the output image looks like the content image, but “painted” in the style of the style reference image. We are trying to transfer style of one image over another without loosing its content. With this you can be an artist yourself and convert your boring photos into a fantastic piece of art within seconds! Since a picture is worth than a thousand words, below are some results which will clearly demonstrate this