-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·31 lines (20 loc) · 1.16 KB
/
run.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
#!/bin/bash
stage=1
if [ $stage -le 1 ];then
local/prepare_all.sh /PATH/official_PVTC/train /PATH/official_PVTC/train_xiaole_time_point /PATH/official_PVTC/dev || exit 1
fi
if [ $stage -le 2 ];then
#If the first parameter is set as false, we will provide the trained model for testing.
local/run_kws.sh false || exit 1
fi
if [ $stage -le 3 ];then
# 6 parameters in this sh. The first `list_pretrain` needs to be created by yourself based on your pre-training data. More details can be found in ./SV_README.md
# If you set the first `list_pretrain` to None, the pre-trained model we provided will be downloaded and used in next steps.
# The second and third parameters should be the path of PVTC train and dev data.
# The fourth and fifth parameters should be the path of MUSAN(SLR17) and RIRs(SLR28) noise.
# If the sixth parameter `whether_finetune` set as None, the finetuned model we provided will also be downloaded instead of fine-tuning on the pre-trained model.
local/run_sv.sh None /PATH/official_PVTC/train /PATH/official_PVTC/dev \
/PATH/musan/ /PATH/RIRS_NOISES/simulated_rirs/ None || exit 1
fi
local/show_results.sh /PATH/official_PVTC/dev || exit 1
exit 0;