-
Notifications
You must be signed in to change notification settings - Fork 12
/
separate.sh
executable file
·34 lines (26 loc) · 1.02 KB
/
separate.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
#!/usr/bin/env bash
### config ###
dataset_name="dns_challenge"
tag="conv_tasnet_snrloss"
data_list='
blind_test_set
'
# data_list='
# synthetic_no_reverb
# synthetic_with_reverb
# real_recordings
# '
gpuid=0
mode="online" # offline, online, or online_debug
### main ###
for data in ${data_list}; do
if [ $mode = "offline" ]; then
./nnet/separate.py ./exp/dns_challenge/${tag} --input ./data/${dataset_name}/${data}/noisy.scp --dump-dir ./eval/${dataset_name}/output_data_${tag}/${data} --gpu ${gpuid}
elif [ $mode = "online" ]; then
./nnet/separate.py ./exp/dns_challenge/${tag} --online 1 --input ./data/${dataset_name}/${data}/noisy.scp --dump-dir ./eval/${dataset_name}/output_data_${tag}_online/${data} --gpu ${gpuid}
elif [ $mode = "online_debug" ]; then
./nnet/separate.py ./exp/dns_challenge/${tag} --online 1 --online_debug 1 --input ./data/${dataset_name}/${data}/noisy.scp --dump-dir ./eval/${dataset_name}/output_data_${tag}_online/${data} --gpu ${gpuid}
else
echo "not supported"
fi
done