-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathtest.sh
More file actions
26 lines (23 loc) · 768 Bytes
/
test.sh
File metadata and controls
26 lines (23 loc) · 768 Bytes
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
. ./path.sh || exit 1;
export CUDA_VISIBLE_DEVICES=7
stage=1
stop_stage=1
config=$1
model_file=$2
src_wav_dir=$3
ref_wav_path=$4
echo ${config}
# =============== One-shot VC ================
if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then
exp_name="$(basename "${config}" .yaml)"
echo Experiment name: "${exp_name}"
# src_wav_dir="/home/shaunxliu/data/cmu_arctic/cmu_us_rms_arctic/wav"
# ref_wav_path="/home/shaunxliu/data/cmu_arctic/cmu_us_slt_arctic/wav/arctic_a0001.wav"
output_dir="vc_gen_wavs/$(basename "${config}" .yaml)"
python convert_from_wav.py \
--ppg2mel_model_train_config ${config} \
--ppg2mel_model_file ${model_file} \
--src_wav_dir "${src_wav_dir}" \
--ref_wav_path "${ref_wav_path}" \
-o "${output_dir}"
fi