-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
27 lines (23 loc) · 1008 Bytes
/
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
chmod 1777 /tmp
pip3 install pyaml
pip3 install sentencepiece
pip3 install sox
pip3 install typeguard
pip3 install tensorboardX
pip3 install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
# download data
dbase=/opt/tiger/speech_data
if [ ! -d $dbase ]; then
mkdir -p $dbase
fi
hdfs_dir=hdfs://haruna/byte_speech_sv/home/user/fengchengli/speech_data
hdfs dfs -get $hdfs_dir/data_aishell.tgz
hdfs dfs -get $hdfs_dir/data_thchs30.tgz
aishell_url=https://openslr.magicdatatech.com/resources/33
thchs_url=https://openslr.magicdatatech.com/resources/18
aidatatang_url=www.openslr.org/resources/62
magicdata_url=www.openslr.org/resources/68
primewords_url=www.openslr.org/resources/47
stcmds_url=www.openslr.org/resources/38
sh ./cn_demo/multi_cn/local/aishell_download_and_untar.sh $dbase/aishell $aishell_url data_aishell || exit 1;
sh ./cn_demo/multi_cn/local/thchs_download_and_untar.sh $dbase/thchs $thchs_url data_thchs30 || exit 1;