-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcreate-outputs.sh
executable file
·34 lines (29 loc) · 1.02 KB
/
create-outputs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
set -x -e
cd "$(dirname "$0")"
# Usage: produceStyle <style image> <deep dream image> <output image>
produceStyle() {
./neural-style.lua \
-style_image examples/inputs/$1.jpg \
-content_image examples/outputs/$2 \
-backend cudnn \
-output_image examples/outputs/$3_deepdream.png
}
# Usage: produceOutputs <content image>
produceOutputs() {
./deepdream.lua \
-backend cudnn \
-content_image examples/inputs/$1.jpg \
-output_image examples/outputs/$1_deepdream.png
produceStyle escher_sphere $1_deepdream.png $1_escher
produceStyle frida_kahlo $1_deepdream.png $1_kahlo
produceStyle woman-with-hat-matisse $1_deepdream.png $1_matisse
produceStyle picasso_selfport1907 $1_deepdream.png $1_picasso
produceStyle the_scream $1_deepdream.png $1_scream
produceStyle seated-nude $1_deepdream.png $1_seated
produceStyle shipwreck $1_deepdream.png $1_shipwreck
produceStyle starry_night $1_deepdream.png $1_starry
}
produceOutputs golden_gate
produceOutputs tubingen
produceOutputs brad_pitt