forked from PlayVoice/VI-SVS
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathevaluate_score.sh
executable file
·53 lines (40 loc) · 1.36 KB
/
evaluate_score.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
echo "Generating"
python vsinging_infer.py
echo "Scoring"
_gt_wavscp="singing_gt"
_dir="evaluate"
_gen_wavdir="singing_out"
if [ ! -d "singing_gt" ] ; then
echo "copy gt"
mkdir -p "singing_gt"
python normalize_wav.py
fi
# Objective Evaluation - MCD
echo "Begin Scoring for MCD metrics on ${dset}, results are written under ${_dir}/MCD_res"
mkdir -p "${_dir}/MCD_res"
python evaluate/evaluate_mcd.py \
${_gen_wavdir} \
${_gt_wavscp} \
--outdir "${_gen_wavdir}/MCD_res"
# Objective Evaluation - log-F0 RMSE
echo "Begin Scoring for F0 related metrics on ${dset}, results are written under ${_dir}/F0_res"
mkdir -p "${_dir}/F0_res"
python evaluate/evaluate_f0.py \
${_gen_wavdir} \
${_gt_wavscp} \
--outdir "${_gen_wavdir}/F0_res"
# Objective Evaluation - semitone ACC
echo "Begin Scoring for SEMITONE related metrics on ${dset}, results are written under ${_dir}/SEMITONE_res"
mkdir -p "${_dir}/SEMITONE_res"
python evaluate/evaluate_semitone.py \
${_gen_wavdir} \
${_gt_wavscp} \
--outdir "${_gen_wavdir}/SEMITONE_res"
# Objective Evaluation - VUV error
echo "Begin Scoring for VUV related metrics on ${dset}, results are written under ${_dir}/VUV_res"
mkdir -p "${_dir}/VUV_res"
python evaluate/evaluate_vuv.py \
${_gen_wavdir} \
${_gt_wavscp} \
--outdir "${_gen_wavdir}/VUV_res"
zip singing_out.zip singing_out/*.wav