forked from IMLHF/Real-Time-Voice-Cloning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_chinese.sh
34 lines (31 loc) · 1.75 KB
/
run_chinese.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
# running English synthesizer, this script cannot run now.
# if [ -z "$1" ]; then
# echo "Need a step param:"
# echo " encoder_preprocess"
# echo " encoder_train"
# echo "synthesizer_preprocess_audio"
# echo "synthesizer_preprocess_embeds"
# echo "synthesizer_train"
# exit -1
# fi
# GPU_DEVICES="2,3"
# step=$1
# if [ "$step" = "encoder_preprocess" ]; then
# python3.5 encoder_preprocess.py --datasets_root=/home/zhangwenbo5/corpus \
# --datasets=aishell2,SLR68 \
# 2>&1 | tee -a log_lhf/encoder_preprocess.log
# elif [ "$step" = "encoder_train" ]; then # pytorch
# CUDA_VISIBLE_DEVICES=$GPU_DEVICES python3.5 encoder_train.py --clean_data_root=/home/zhangwenbo5/corpus/SV2TTS/encoder \
# 2>&1 | tee -a log_lhf/encoder_train.log
# elif [ "$step" = "synthesizer_preprocess_audio" ]; then
# python3.5 synthesizer_preprocess_audio.py /home/zhangwenbo5/corpus aishell2 --n_processes=32 \
# 2>&1 | tee -a log_lhf/synthesizer_preprocess_audio.log
# elif [ "$step" = "synthesizer_preprocess_embeds" ]; then
# CUDA_VISIBLE_DEVICES=$GPU_DEVICES python3.5 synthesizer_preprocess_embeds.py /home/zhangwenbo5/corpus \
# 2>&1 | tee -a log_lhf/synthesizer_preprocess_embeds.log
# elif [ "$step" = "synthesizer_train" ]; then
# CUDA_VISIBLE_DEVICES=$GPU_DEVICES python3.5 synthesizer_train.py synthesizer /home/zhangwenbo5/corpus \
# 2>&1 | tee -a log_lhf/synthesizer_train.log
# else
# echo "step param error." && exit -1
# fi