File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ Run the command below to
37
37
3 . train the model.
38
38
4 . synthesize wavs.
39
39
- synthesize waveform from ` metadata.jsonl ` .
40
+ - ` --stage ` controls the vocoder model during synthesis (0 = pwgan, 1 = hifigan).
40
41
- synthesize waveform from text file.
41
42
``` bash
42
43
./run.sh
Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ if [ ${stage} -le 1 ] && [ ${stop_stage} -ge 1 ]; then
28
28
fi
29
29
30
30
if [ ${stage} -le 2 ] && [ ${stop_stage} -ge 2 ]; then
31
- # synthesize, vocoder is pwgan by default
32
- CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize.sh ${conf_path} ${train_output_path} ${ckpt_name} || exit -1
31
+ # synthesize, vocoder is pwgan by default stage 0, stage 1 will use hifigan as vocoder
32
+ CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize.sh --stage 0 ${conf_path} ${train_output_path} ${ckpt_name} || exit -1
33
33
fi
34
34
35
35
if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
36
- # synthesize_e2e, vocoder is pwgan by default
37
- CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize_e2e.sh ${conf_path} ${train_output_path} ${ckpt_name} || exit -1
36
+ # synthesize_e2e, vocoder is pwgan by default stage 0, stage 1 will use hifigan as vocoder
37
+ CUDA_VISIBLE_DEVICES=${gpus} ./local/synthesize_e2e.sh --stage 0 ${conf_path} ${train_output_path} ${ckpt_name} || exit -1
38
38
fi
39
39
40
40
if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
You can’t perform that action at this time.
0 commit comments