-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtest_shift.sh
55 lines (46 loc) · 1.17 KB
/
test_shift.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!bin/bash
set -x
session=0
epoch=3
checkpoint=17783
base=0
# S0
for i in $(seq -10 10)
do
(i=$i);
#echo "x:"$i "y:0"
python test_net.py --sx $i --sy 0 --dataset kaist --net vgg16 --checksession $session --checkepoch $epoch --checkpoint $checkpoint --reasonable --cuda
done
# S45
for i in $(seq -10 10)
do
(i=$i);
echo "x:"$i "y:$i"
python test_net.py --sx $i --sy $i --dataset kaist --net vgg16 --checksession $session --checkepoch $epoch --checkpoint $checkpoint --reasonable --cuda
done
# S90
for i in $(seq -10 10)
do
(i=$i);
echo "x:"0 "y:$i"
python test_net.py --sx 0 --sy $i --dataset kaist --net vgg16 --checksession $session --checkepoch $epoch --checkpoint $checkpoint --reasonable --cuda
done
# S135
for i in $(seq -10 10)
do
(j=$base-$i);
echo "x:"$i "y:$j"
python test_net.py --sx $i --sy $j --dataset kaist --net vgg16 --checksession $session --checkepoch $epoch --checkpoint $checkpoint --reasonable --cuda
done
# surface plot
: << !
for i in $(seq -6 6)
do
(i=$i);
for j in $(seq -6 6)
do
(j=$j);
python test_net_kaist.py --sx $i --sy $j --dataset kaist --net vgg16 --checksession $session --checkepoch $epoch --checkpoint $checkpoint --reasonable --cuda
done
done
!