-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlinux_run_extra_eval.sh
executable file
·43 lines (41 loc) · 1.48 KB
/
linux_run_extra_eval.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
#!/bin/bash
# Script for running extra evaluation experiments (on lengths of 3 and 10 seconds)
data_dir=~/gp-data
expt_dirs=$(find $data_dir -maxdepth 1 -mindepth 1 -type d \
-not -path "*old_aug*" \
-not -path "*all_preprocessed*")
for dir in $expt_dirs; do
if [ ! -f $dir/exp/results/results_30s ]; then
echo "No 30s results found for $dir !"
continue
fi
expname=$(basename $dir)
if [[ $expname == ad_all_tr* ]]; then
#GP_EVAL_LANGUAGES="AR BG CH CR CZ FR GE JA KO PL PO RU SP SW TH TU WU VN"
continue
elif [[ $expname == ad_slavic_tr* ]]; then
#GP_EVAL_LANGUAGES="BG CR CZ PL RU"
continue
elif [[ $expname == da_* ]]; then
GP_EVAL_LANGUAGES="AR BG CH CR CZ FR GE JA KO PL PO RU SP SW TH TU VN"
elif [[ $expname == lre_* ]]; then
continue
else
GP_EVAL_LANGUAGES="AR BG CH CR CZ FR GE JA KO PL PO RU SP SW TH TU WU VN"
fi
echo -e "use_model_from=$expname\nGP_EVAL_LANGUAGES=\"$GP_EVAL_LANGUAGES\"" \
> gp-xvectors-recipe/conf/eval_configs/expconf.conf
echo "Trying $expname"
if [ $(ls $dir/exp/results | wc -l) -ne 9 ]; then
echo "Adding 3s and 10s results..."
./gp-xvectors-recipe/run_extra_eval.sh --config=expconf
wait;
if [ $(ls $dir/exp/results | wc -l) -eq 9 ]; then
echo "Finished getting extra X-vectors" | mail -v -s "$expname" [email protected]
else
echo "Error getting extra results" | mail -v -s "$expname" [email protected]
fi
else
echo "#### Finished already ####"
fi
done