-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmulti-lap-test.sh
More file actions
executable file
·19 lines (18 loc) · 878 Bytes
/
multi-lap-test.sh
File metadata and controls
executable file
·19 lines (18 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash -x
# test lap_style.lua with the combination of multiple laplacian layers, on a single image pair
contentimg=$1
styleimg=$2
contentweight=$3
contentFilename=$(basename "$contentimg")
contentname="${contentFilename%.*}"
styleFilename=$(basename "$styleimg")
stylename="${styleFilename%.*}"
laplayersAll=( 1 1 2 1,2 1,3 2,3 2,4)
lapweightsAll=(0 50 100 50,100 50,400 100,400 100,1600)
configLen=${#laplayersAll[@]}
for (( i=0; i<$configLen; i++ )); do
laplayers=${laplayersAll[$i]}
lapweights=${lapweightsAll[$i]}
outsig="${contentname}_${stylename}${contentweight}_${laplayers}_${lapweights}"
th lap_style.lua -style_image images/$styleimg -content_image images/$contentimg -output_image output/${outsig}.png -content_weight $contentweight -lap_layers $laplayers -lap_weights $lapweights 2>&1| tee output/${outsig}.log
done