create account

creating your work of art from your photo by dconstantine

View this thread on: hive.blogpeakd.comecency.com
· @dconstantine ·
creating your work of art from your photo
<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>
👍  ,
👎  
properties (23)
authordconstantine
permlinkcreating-your-work-of-art-from-your-photo
categoryart
json_metadata{"tags":["art","photography"],"image":["https://img1.steemit.com/0x0/http://tinyimg.io/i/T3wjc1u.png","https://img1.steemit.com/0x0/http://tinyimg.io/i/pGawlPw.png","https://img1.steemit.com/0x0/http://tinyimg.io/i/t3IL3uA.png","https://img1.steemit.com/0x0/http://tinyimg.io/i/1Toi3zE.png"],"links":["https://raw.githubusercontent.com/torch/ezinstall/master/install-all","https://github.com/jcjohnson/neural-style.git","https://github.com/jcjohnson/neural-style"]}
created2016-08-19 21:33:03
last_update2016-08-19 21:33:03
depth0
children2
last_payout2016-09-19 21:36:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,074
author_reputation57,217,768,234
root_title"creating your work of art from your photo"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id896,256
net_rshares-132,018,904,045
author_curate_reward""
vote details (3)
@meesterboom ·
Good guide man!
👍  
properties (23)
authormeesterboom
permlinkre-dconstantine-creating-your-work-of-art-from-your-photo-20160819t213659695z
categoryart
json_metadata{"tags":["art"]}
created2016-08-19 21:37:00
last_update2016-08-19 21:37:00
depth1
children1
last_payout2016-09-19 21:36:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length15
author_reputation1,802,735,355,975,890
root_title"creating your work of art from your photo"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id896,326
net_rshares55,147,521
author_curate_reward""
vote details (1)
@dconstantine ·
thanks :)
👍  
properties (23)
authordconstantine
permlinkre-meesterboom-re-dconstantine-creating-your-work-of-art-from-your-photo-20160819t214340630z
categoryart
json_metadata{"tags":["art"]}
created2016-08-19 21:39:21
last_update2016-08-19 21:39:21
depth2
children0
last_payout2016-09-19 21:36:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9
author_reputation57,217,768,234
root_title"creating your work of art from your photo"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id896,363
net_rshares55,147,521
author_curate_reward""
vote details (1)