create account

How to create your work of art from your photo, using your PC by team

View this thread on: hive.blogpeakd.comecency.com
· @team · (edited)
$36.11
How to create your work of art from your photo, using your PC
Earlier I [wrote idea](https://steemit.com/idea/@team/gpu-monetization-idea) how to monetize your GPU on the example deepart.io

Now I want to tell you how to create your work of art, using your PC processor and neural networks

All you need:

1. Medium-power processor(ofcourse, than CPU power is greater, the faster will go processing)
2. 4GB RAM min, prefer 8 GB or more(size of the output image will depend) 
3. 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)
4. Follow the instructions below

I will not explain what makes each command, the majority of people is useless and only complicate the process

I Just write a sequence of commands that must be entered on the command line (Terminal)

So, let's begin! Just copy an command:

1.  **sudo apt-get install git** 
2.  **sudo add-apt-repository ppa:ubuntu-toolchain-r/test**
3.  **sudo apt-get update**
4.  **sudo apt-get install gcc-4.9 g++-4.9**
5.  **sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9**
6.  **sudo apt-get install lua5.2**
7.  **sudo apt-get install luarocks**
8.  **sudo apt-get install luajit**
9.  **sudo apt-get install curl**
10.  **curl s https://raw.githubusercontent.com/torch/ezinstall/master/install-all | bash**
*(It takes a lot of time, You can relax :))*
11.  **sudo apt-get install libprotobuf-dev protobuf-compiler**
12.  **sudo luarocks install loadcaffe**
13.  **sudo luarocks install image**
14. **luarocks install nn**
*Now you need create folder on Home directory, in Terminal enter:*
15. **mkdir workart**
*(or name what you want)* 

*Now you need open this folder, in Terminal enter:*
17.  **cd workart**
*(or your folder name)*
18. **sudo git clone https://github.com/jcjohnson/neural-style.git**
19. **sudo sh models/download_models.sh**
*(It takes a lot of time, You can relax again :))*

Thats all, all components installed

Copy your **photo** and **painting style image**, to the neural-style folder

Open neural-style folder in terminal:
**cd path/neural-style**

Enter comand:
**th neural_style.lua -style_image paintingstyle.jpg -content_image YourPhoto.jpg -gpu -1**

Do not expect good results immediately, if the result does not suit you, you can change options
the most important of them

**-content_weight**: How much to weight the content reconstruction term. Default is 5e0.
**-style_weight**: How much to weight the style reconstruction term. Default is 1e2.
**-original_colors**: If you set this to 1, then the output image will keep the colors of the content image.
Change the size of the output image:  **image_size 800** (default 512 )
more options: https://github.com/jcjohnson/neural-style

Some image :) http://tinyimg.io/i/pGawlPw.png

Some result:) http://tinyimg.io/i/T3wjc1u.png

**Have a nice day!**
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 24 others
properties (23)
authorteam
permlinkhow-to-create-your-work-of-art-from-your-photo-using-your-pc
categoryart
json_metadata{"tags":["art"],"links":["https://steemit.com/idea/@team/gpu-monetization-idea"]}
created2016-07-12 03:23:54
last_update2016-07-12 05:48:48
depth0
children6
last_payout2016-08-18 10:30:36
cashout_time1969-12-31 23:59:59
total_payout_value29.332 HBD
curator_payout_value6.779 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,885
author_reputation9,004,629,657,086
root_title"How to create your work of art from your photo, using your PC"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,549
net_rshares40,088,212,407,948
author_curate_reward""
vote details (88)
@anca3drandom ·
This is very nice! unfortunately I'm not good with code
properties (22)
authoranca3drandom
permlinkre-team-how-to-create-your-work-of-art-from-your-photo-using-your-pc-20160718t102953531z
categoryart
json_metadata{"tags":["art"]}
created2016-07-18 10:29:54
last_update2016-07-18 10:29:54
depth1
children0
last_payout2016-08-18 10:30:36
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_length55
author_reputation63,410,702,977,026
root_title"How to create your work of art from your photo, using your PC"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id163,679
net_rshares0
@jee.sandy ·
okay i will try it, thanks for information
properties (22)
authorjee.sandy
permlinkre-team-how-to-create-your-work-of-art-from-your-photo-using-your-pc-20180204t121020057z
categoryart
json_metadata{"tags":["art"],"app":"steemit/0.1"}
created2018-02-04 12:10:27
last_update2018-02-04 12:10:27
depth1
children0
last_payout2018-02-11 12:10:27
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_length42
author_reputation48,265,923,810
root_title"How to create your work of art from your photo, using your PC"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id34,873,207
net_rshares0
@kap1 ·
I will definitely try it. Thank you...
properties (22)
authorkap1
permlinkrsdqpc
categoryart
json_metadata{"app":"hiveblog/0.1"}
created2023-03-31 10:05:36
last_update2023-03-31 10:05:36
depth1
children0
last_payout2023-04-07 10:05:36
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_length38
author_reputation16,066,859,347,652
root_title"How to create your work of art from your photo, using your PC"
beneficiaries
0.
accounthiveonboard
weight100
1.
accountocdb
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id122,136,855
net_rshares0
@qwerty · (edited)
Will try, thanks for sharing
properties (22)
authorqwerty
permlinkre-team-how-to-create-your-work-of-art-from-your-photo-using-your-pc-20160712t051353187z
categoryart
json_metadata{"tags":["art"]}
created2016-07-12 05:13:54
last_update2016-07-12 05:20:30
depth1
children0
last_payout2016-08-18 10:30:36
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_length28
author_reputation7,861,868,576
root_title"How to create your work of art from your photo, using your PC"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id83,028
net_rshares0
@rahmat · (edited)
talk about the artwork. what do you think about bitcoin and art ???
<a href="https://steemit.com/art/@rahmat/bitcoin-and-artwork-max-mellen-brunch-creator-kilara">bitcoin and art</a>
properties (22)
authorrahmat
permlinkre-team-how-to-create-your-work-of-art-from-your-photo-using-your-pc-20160712t034408406z
categoryart
json_metadata{"tags":["art"],"links":["https://steemit.com/art/@rahmat/bitcoin-and-artwork-max-mellen-brunch-creator-kilara"]}
created2016-07-12 03:44:09
last_update2016-07-12 03:48:12
depth1
children0
last_payout2016-08-18 10:30:36
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_length182
author_reputation1,932,053,971,083
root_title"How to create your work of art from your photo, using your PC"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id82,626
net_rshares0
@ubglo17 ·
This is very nice 
Thanks for the update 
properties (22)
authorubglo17
permlinkre-team-202518t13406589z
categoryart
json_metadata{"type":"comment","tags":["art"],"app":"ecency/3.2.0-mobile","format":"markdown+html"}
created2025-01-08 12:40:06
last_update2025-01-08 12:40:06
depth1
children0
last_payout2025-01-15 12:40:06
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_length41
author_reputation3,690,115,911,351
root_title"How to create your work of art from your photo, using your PC"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id139,818,737
net_rshares0