-
Notifications
You must be signed in to change notification settings - Fork 16
/
02b_test_2023t2.sh
39 lines (33 loc) · 1.19 KB
/
02b_test_2023t2.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
TZ=JST-9 date
echo $0 $*
dev_eval=$1
echo -e "\tdev_eval = '$dev_eval'"
echo
# check args
if [ "${dev_eval}" != "-d" ] \
&& [ "${dev_eval}" != "-e" ] \
&& [ "${dev_eval}" != "--dev" ] \
&& [ "${dev_eval}" != "--eval" ]
then
echo "$0: argument error"
echo -e "usage\t: $0 ['-d' | '--dev' | '-e' | '--eval']"
echo -e "\tinvalid choice '$dev_eval'"
echo -e "\tchoice from ['-d' | '--dev' | '-e' | '--eval']."
echo -e "\t\t-d, --dev\t: Using Development dataset. "
echo -e "\t\t-e, --eval\t: Using Additional training dataset and Evaluation dataset. "
echo -e "example\t: $ bash $0 -d"
exit 1
fi
# main process
base_job="bash"
job="test_ae.sh"
if [ "${dev_eval}" = "-d" ] || [ "${dev_eval}" = "--dev" ]
then
dataset_list="DCASE2023T2bearing DCASE2023T2fan DCASE2023T2gearbox DCASE2023T2slider DCASE2023T2ToyCar DCASE2023T2ToyTrain DCASE2023T2valve"
elif [ "${dev_eval}" = "-e" ] || [ "${dev_eval}" = "--eval" ]
then
dataset_list="DCASE2023T2ToyDrone DCASE2023T2ToyNscale DCASE2023T2ToyTank DCASE2023T2Vacuum DCASE2023T2bandsaw DCASE2023T2grinder DCASE2023T2shaker"
fi
for dataset in $dataset_list; do
${base_job} ${job} ${dataset} ${dev_eval} "MAHALA" 0
done