forked from ano-demo/AdvAttacksASVspoof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
1.run_features.sh
executable file
·23 lines (19 loc) · 938 Bytes
/
1.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="/data/longnv/OutDir"
echo 'Current Dir: '${RootDir}
extractLPS=1
if [ $extractLPS -eq 1 ]; then
echo 'Extracting Log Power Spectrograms ...'
python ./preprocess/compute_LPS.py --in_dir /datad/temp_data/ASVspoof_denoise/ \
--out_dir ${RootDir}/LPS_863_denoise \
--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 ${RootDir}/LMS \
--access_type PA \
--param_json_path ./preprocess/conf/stft.json
fi