-
Notifications
You must be signed in to change notification settings - Fork 1
/
gen_results.zsh
executable file
·67 lines (48 loc) · 1.51 KB
/
gen_results.zsh
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/zsh
glimpses=(0 1 2 3 4 5 6 7 8)
train_seq=(0 2 4 5 6 8 9)
val_seq=(10)
test_seq=(1 3 7)
mkdir out/$1/results
mkdir out/$1/results/train
mkdir out/$1/results/val
mkdir out/$1/results/test
python tools/plot_loss.py --data_dir $1 --minibatch=false --save=true
python tools/plot_loss.py --data_dir $1 --minibatch=true --save=true
cd out/$1/
mv loss_epoch.pdf results/loss_epoch.pdf
mv loss_minibatch.pdf results/loss_minibatch.pdf
cd ../..
for x in $train_seq
do
python main.py --test $1 --dataset 'kitti' --test_seq $x
python tools/plot_glimpse.py --dir $1/results/$x --epoch test
for g in $glimpses
do
python tools/plot_heatmap.py --dir $1/results/$x --glimpse $g --train false
done
python tools/gen_metrics.py --data_dir $1/results/$x
mv out/$1/results/$x out/$1/results/train/$x
done
for x in $val_seq
do
python main.py --test $1 --dataset 'kitti' --test_seq $x
python tools/plot_glimpse.py --dir $1/results/$x --epoch test
for g in $glimpses
do
python tools/plot_heatmap.py --dir $1/results/$x --glimpse $g --train false
done
python tools/gen_metrics.py --data_dir $1/results/$x
mv out/$1/results/$x out/$1/results/val/$x
done
for x in $test_seq
do
python main.py --test $1 --dataset 'kitti' --test_seq $x
python tools/plot_glimpse.py --dir $1/results/$x --epoch test
for g in $glimpses
do
python tools/plot_heatmap.py --dir $1/results/$x --glimpse $g --train false
done
python tools/gen_metrics.py --data_dir $1/results/$x
mv out/$1/results/$x out/$1/results/test/$x
done