添加了自定义修改随机数种子,方便复现结果。
This commit is contained in:
@@ -92,6 +92,7 @@ def inference(text, text_lang,
|
||||
text_split_method, batch_size,
|
||||
speed_factor, ref_text_free,
|
||||
split_bucket,fragment_interval,
|
||||
seed,
|
||||
):
|
||||
inputs={
|
||||
"text": text,
|
||||
@@ -108,6 +109,7 @@ def inference(text, text_lang,
|
||||
"split_bucket":split_bucket,
|
||||
"return_fragment":False,
|
||||
"fragment_interval":fragment_interval,
|
||||
"seed":seed,
|
||||
}
|
||||
|
||||
for item in tts_pipline.run(inputs):
|
||||
@@ -203,6 +205,7 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app:
|
||||
)
|
||||
with gr.Row():
|
||||
split_bucket = gr.Checkbox(label=i18n("数据分桶(可能会降低一点计算量,选就对了)"), value=True, interactive=True, show_label=True)
|
||||
seed = gr.Number(label=i18n("随机种子"),value=-1)
|
||||
# with gr.Column():
|
||||
output = gr.Audio(label=i18n("输出的语音"))
|
||||
with gr.Row():
|
||||
@@ -219,6 +222,7 @@ with gr.Blocks(title="GPT-SoVITS WebUI") as app:
|
||||
how_to_cut, batch_size,
|
||||
speed_factor, ref_text_free,
|
||||
split_bucket,fragment_interval,
|
||||
seed
|
||||
],
|
||||
[output],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user