<html>
<p><br></p>
<p>https://img1.steemit.com/0x0/http://tinyimg.io/i/T3wjc1u.png</p>
<p>All you need:</p>
<p><br></p>
<p>Medium-power processor(ofcourse, than CPU power is greater, the faster will go processing)</p>
<p>4GB RAM min, prefer 8 GB or more(size of the output image will depend)</p>
<p>OS Linux: Ubuntu 64bit V.12.04 or 14.04(if you use Windows, install a virtual machine Oracle VM VirtualBox with Ubuntu 64bit V.12.04 or 14.04)</p>
<p>Follow the instructions below</p>
<p>I will not explain what makes each command, the majority of people is useless and only complicate the process</p>
<p><br></p>
<p>I Just write a sequence of commands that must be entered on the command line (Terminal)</p>
<p><br></p>
<p>So, let's begin! Just copy an command:</p>
<p><br></p>
<p>sudo apt-get install git</p>
<p>sudo add-apt-repository ppa:ubuntu-toolchain-r/test</p>
<p>sudo apt-get update</p>
<p>sudo apt-get install gcc-4.9 g++-4.9</p>
<p>sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9</p>
<p>sudo apt-get install lua5.2</p>
<p>sudo apt-get install luarocks</p>
<p>sudo apt-get install luajit</p>
<p>sudo apt-get install curl</p>
<p>curl s https://raw.githubusercontent.com/torch/ezinstall/master/install-all | bash</p>
<p>(It takes a lot of time, You can relax :))</p>
<p>sudo apt-get install libprotobuf-dev protobuf-compiler</p>
<p>sudo luarocks install loadcaffe</p>
<p>sudo luarocks install image</p>
<p>luarocks install nn</p>
<p>Now you need create folder on Home directory, in Terminal enter:</p>
<p>mkdir workart</p>
<p>(or name what you want)</p>
<p>Now you need open this folder, in Terminal enter:</p>
<p><br></p>
<p>cd workart</p>
<p>(or your folder name)</p>
<p>sudo git clone https://github.com/jcjohnson/neural-style.git</p>
<p>sudo sh models/download_models.sh</p>
<p>(It takes a lot of time, You can relax again :))</p>
<p>Thats all, all components installed</p>
<p><br></p>
<p>Copy your photo and painting style image, to the neural-style folder</p>
<p><br></p>
<p>Open neural-style folder in terminal:</p>
<p>cd path/neural-style</p>
<p><br></p>
<p>Enter comand:</p>
<p>th neural_style.lua -style_image paintingstyle.jpg -content_image YourPhoto.jpg -gpu -1</p>
<p><br></p>
<p>Do not expect good results immediately, if the result does not suit you, you can change options</p>
<p>the most important of them</p>
<p><br></p>
<p>-content_weight: How much to weight the content reconstruction term. Default is 5e0.</p>
<p>-style_weight: How much to weight the style reconstruction term. Default is 1e2.</p>
<p>-original_colors: If you set this to 1, then the output image will keep the colors of the content image.</p>
<p>Change the size of the output image: image_size 800 (default 512 )</p>
<p>more options: https://github.com/jcjohnson/neural-style</p>
<p>some photos :</p>
<p>https://img1.steemit.com/0x0/http://tinyimg.io/i/pGawlPw.png</p>
<p>https://img1.steemit.com/0x0/http://tinyimg.io/i/t3IL3uA.png</p>
<p>https://img1.steemit.com/0x0/http://tinyimg.io/i/1Toi3zE.png</p>
</html>