forked from ano-demo/AdvAttacksASVspoof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_features.sh
23 lines (19 loc) · 922 Bytes
/
run_features.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#prepare list of training, dev (full dev or four fold)
RootDir=`pwd`
echo 'Current Dir: '${RootDir}
extractLPS=1
if [ $extractLPS -eq 1 ]; then
echo 'Extracting Log Power Spectrograms ...'
python ./preprocess/compute_LPS.py --in_dir /home/sxliu/projects/asvspoof/asvspoof2019_data/ \
--out_dir ./data_LA/LPS_863 \
--access_type LA \
--param_json_path ./preprocess/conf/stft_T45.json
fi
extractLMS=0
if [ $extractLMS -eq 1 ]; then
echo 'Extracting Log Magnitude Spectrograms ...'
python ./preprocess/compute_LMS.py --in_dir /scratch/sxliu/projects/asvspoof/ASVspoof2019-data/ \
--out_dir ./data/LMS \
--access_type PA \
--param_json_path ./preprocess/conf/stft.json
fi