-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_facodec.sh
More file actions
executable file
·85 lines (74 loc) · 1.94 KB
/
Copy pathrun_facodec.sh
File metadata and controls
executable file
·85 lines (74 loc) · 1.94 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/bash
# Apache 2.0.
# args
input_feature_dim=768
dropout_p=0.6
stage=1
stop_stage=9
# prepare train data
if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then
echo "Stage 1"
python facodec/infer_timbre_emb.py
fi
# prepare test data
if [ ${stage} -le 2 ] && [ ${stop_stage} -ge 2 ]; then
echo "Stage 2"
python facodec/infer_timbre_emb_test.py
fi
# train model
if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
echo "Stage 3"
python train_wespeaker.py \
--config_model_name "train_facodec" \
--input_feature_dim $input_feature_dim \
--dropout_p $dropout_p \
--add_ab
fi
# infer validate set
if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
echo "Stage 4"
python infer_wespeaker.py \
--config_model_name "infer_facodec" \
--input_feature_dim $input_feature_dim \
--dropout_p $dropout_p \
--add_ab
fi
# acc_eer validate set
if [ ${stage} -le 5 ] && [ ${stop_stage} -ge 5 ]; then
echo "Stage 5"
python acc_eer.py \
--config_path "configs/baseline.json" \
--config_model "acc_eer_facodec"
fi
# infer seen test set
if [ ${stage} -le 6 ] && [ ${stop_stage} -ge 6 ]; then
echo "Stage 6"
python infer_wespeaker_test.py \
--config_name "seen_infer_facodec" \
--input_feature_dim $input_feature_dim \
--dropout_p $dropout_p \
--add_ab
fi
# infer unseen test set
if [ ${stage} -le 7 ] && [ ${stop_stage} -ge 7 ]; then
echo "Stage 7"
python infer_wespeaker_test.py \
--config_name "unseen_infer_facodec" \
--input_feature_dim $input_feature_dim \
--dropout_p $dropout_p \
--add_ab
fi
# acc_eer seen test set
if [ ${stage} -le 8 ] && [ ${stop_stage} -ge 8 ]; then
echo "Stage 8"
python acc_eer.py \
--config_path "configs/baseline.json" \
--config_model "acc_eer_seen_infer_facodec"
fi
# acc_eer unseen test set
if [ ${stage} -le 9 ] && [ ${stop_stage} -ge 9 ]; then
echo "Stage 9"
python acc_eer.py \
--config_path "configs/baseline.json" \
--config_model "acc_eer_unseen_infer_facodec"
fi