forked from NVFX/FastPhotoStyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo4k.sh
23 lines (15 loc) · 769 Bytes
/
demo4k.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
rm images -rf;
rm results -rf;
mkdir images && mkdir results;
cd images;
axel -n 1 http://freebigpictures.com/wp-content/uploads/shady-forest.jpg --output=content1.png;
axel -n 1 https://vignette.wikia.nocookie.net/strangerthings8338/images/e/e0/Wiki-background.jpeg/revision/latest?cb=20170522192233 --output=style1.png;
# do not resize
#convert -resize 25% content1.png content1.png;
#convert -resize 50% style1.png style1.png;
cd ..;
# set variables for files
output_image=./results/example1.png
content_image=./images/content1.png
# Call NvBlit
NvBlit -w 3840 -l 2160 -i 700 -s ./images/style1.png -c $content_image -o $output_image -x "python demo4k.py --style_image_path @style_image --content_image_path @content_image --output_image_path @output_image"