-
Notifications
You must be signed in to change notification settings - Fork 15
/
02b_test_2024t2.sh
49 lines (43 loc) · 1.35 KB
/
02b_test_2024t2.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
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="DCASE2024T2bearing DCASE2024T2fan DCASE2024T2gearbox DCASE2024T2slider DCASE2024T2ToyCar DCASE2024T2ToyTrain DCASE2024T2valve"
elif [ "${dev_eval}" = "-e" ] || [ "${dev_eval}" = "--eval" ]
then
dataset_list="\
DCASE2024T23DPrinter \
DCASE2024T2AirCompressor \
DCASE2024T2Scanner \
DCASE2024T2ToyCircuit \
DCASE2024T2HoveringDrone \
DCASE2024T2HairDryer \
DCASE2024T2ToothBrush \
DCASE2024T2RoboticArm \
DCASE2024T2BrushlessMotor \
"
fi
for dataset in $dataset_list; do
${base_job} ${job} ${dataset} ${dev_eval} "MAHALA" 0
done