-
Notifications
You must be signed in to change notification settings - Fork 4
/
table3.sh
executable file
·92 lines (79 loc) · 3.46 KB
/
table3.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/bin/bash
quick=false
gpu=0
dataset=didemo
while getopts ":HQ" opt; do
case $opt in
H) echo "Script will run the experiments corresponding to table 4 in the paper"
echo "Flag 'Q' (optional): if you have run evaluation before, intermediate values will be cached. Adding -Q will speed up computation"
;;
Q) quick=true
;;
G) gpu="$OPTARG"
esac
done
#Compute/cache intermediate outputs
if [ $quick == false ] ; then
./experiments/eval_released.sh -D $dataset -G $gpu -M mcn
./experiments/eval_released.sh -D $dataset -G $gpu -M mcn-tall-loss
./experiments/eval_released.sh -D $dataset -G $gpu -M tall-noTEF
./experiments/eval_released.sh -D $dataset -G $gpu -M tall
./experiments/eval_released.sh -D $dataset -G $gpu -M mcn-tall-sim
./experiments/eval_released.sh -D $dataset -G $gpu -M mcn-mult-no-norm
./experiments/eval_released.sh -D $dataset -G $gpu -M mllc-global #base mllc model with context features
fi
echo ""
echo ""
echo ""
echo "RESULTS: MCN (row 1)"
python utils/fusion.py --rgb_tag $dataset/emnlp2018_rgb_mcn_$dataset \
--flow_tag $dataset/emnlp2018_flow_mcn_$dataset \
--iter 45000 \
--dataset $dataset \
--set val \
--quiet
echo "RESULTS: MCN, tall loss (row 2)"
python utils/fusion.py --rgb_tag $dataset/emnlp2018_rgb_mcn-tall-loss_$dataset \
--flow_tag $dataset/emnlp2018_flow_mcn-tall-loss_$dataset \
--iter 45000 \
--dataset $dataset \
--tall \
--set val \
--quiet
echo "RESULTS: Tall (row 2)"
python utils/fusion.py --rgb_tag $dataset/emnlp2018_rgb_tall-noTEF_$dataset \
--flow_tag $dataset/emnlp2018_flow_tall-noTEF_$dataset \
--iter 45000 \
--dataset $dataset \
--tall \
--set val \
--quiet
echo "RESULTS: Tall w/TEF (row 3)"
python utils/fusion.py --rgb_tag $dataset/emnlp2018_rgb_tall_$dataset \
--flow_tag $dataset/emnlp2018_flow_tall_$dataset \
--iter 45000 \
--dataset $dataset \
--tall \
--set val \
--quiet
echo "RESULTS: MCN w/Tall feature (row 4)"
python utils/fusion.py --rgb_tag $dataset/emnlp2018_rgb_mcn-tall-sim_$dataset \
--flow_tag $dataset/emnlp2018_flow_mcn-tall-sim_$dataset \
--iter 45000 \
--dataset $dataset \
--set val \
--quiet
echo "RESULTS: MCN w/Mult feature, no norm (row 5)"
python utils/fusion.py --rgb_tag $dataset/emnlp2018_rgb_mcn-mult-no-norm_$dataset \
--flow_tag $dataset/emnlp2018_flow_mcn-mult-no-norm_$dataset \
--iter 45000 \
--dataset $dataset \
--set val \
--quiet
echo "RESULTS: MLLC (row 6)"
python utils/fusion.py --rgb_tag $dataset/emnlp2018_rgb_mllc-global_$dataset \
--flow_tag $dataset/emnlp2018_flow_mllc-global_$dataset \
--iter 45000 \
--dataset $dataset \
--set val \
--quiet