Spaces:
Running
Running
- app.py +4 -4
- logs/44k/D_308800.pth +3 -0
- logs/44k/G_308800.pth +3 -0
app.py
CHANGED
@@ -743,7 +743,7 @@ with app:
|
|
743 |
#with gr.Row():
|
744 |
# choice_ckpt = gr.Dropdown(label="模型选择", choices=ckpt_list, value="no_model")
|
745 |
# model_branch = gr.Textbox(label="模型编码器", placeholder="请先选择模型", interactive=False)
|
746 |
-
#choice_ckpt = gr.Dropdown(value="
|
747 |
#with gr.Row():
|
748 |
# config_choice = gr.Dropdown(label="配置文件", choices=config_list, value="no_config")
|
749 |
# config_info = gr.Textbox(label="配置文件编码器", placeholder="请选择配置文件")
|
@@ -770,7 +770,7 @@ with app:
|
|
770 |
sid = gr.Dropdown(value="1030", visible=False)
|
771 |
|
772 |
#choice_ckpt.change(get_model_info, [choice_ckpt], [model_branch])
|
773 |
-
model_branch = Newget_model_info("
|
774 |
#config_choice.change(load_json_encoder, [config_choice], [config_info])
|
775 |
#refresh.click(refresh_options,[],[choice_ckpt,config_choice,cluster_choice,diff_choice,diff_config_choice])
|
776 |
|
@@ -818,7 +818,7 @@ with app:
|
|
818 |
pad_seconds = gr.Number(label="推理音频pad秒数,由于未知原因开头结尾会有异响,pad一小段静音段后就不会出现", value=0.5)
|
819 |
lg_num = gr.Number(label="两端音频切片的交叉淡入长度,如果自动切片后出现人声不连贯可调整该数值,如果连贯建议采用默认值0,注意,该设置会影响推理速度,单位为秒/s", value=1)
|
820 |
lgr_num = gr.Number(label="自动音频切片后,需要舍弃每段切片的头尾。该参数设置交叉长度保留的比例,范围0-1,左开右闭", value=0.75,interactive=True)
|
821 |
-
second_encoding = gr.Checkbox(label
|
822 |
loudness_envelope_adjustment = gr.Number(label="输入源响度包络替换输出响度包络融合比例,越靠近1越使用输出响度包络", value = 0)
|
823 |
use_spk_mix = gr.Checkbox(label="动态声线融合,暂时没做完", value=False, interactive=False)
|
824 |
with gr.Row():
|
@@ -831,7 +831,7 @@ with app:
|
|
831 |
def Newvc_fn(sid, input_audio, vc_transform, auto_f0, cluster_ratio, slice_db, noise_scale, pad_seconds, cl_num, lg_num, lgr_num, f0_predictor, enhancer_adaptive_key, cr_threshold, k_step, use_spk_mix, second_encoding, loudness_envelope_adjustment, clus2):
|
832 |
global model, loaded
|
833 |
if loaded != clus2:
|
834 |
-
Newload_model_func("
|
835 |
loaded = clus2
|
836 |
try:
|
837 |
if input_audio is None:
|
|
|
743 |
#with gr.Row():
|
744 |
# choice_ckpt = gr.Dropdown(label="模型选择", choices=ckpt_list, value="no_model")
|
745 |
# model_branch = gr.Textbox(label="模型编码器", placeholder="请先选择模型", interactive=False)
|
746 |
+
#choice_ckpt = gr.Dropdown(value="G_308800.pth", visible=False)
|
747 |
#with gr.Row():
|
748 |
# config_choice = gr.Dropdown(label="配置文件", choices=config_list, value="no_config")
|
749 |
# config_info = gr.Textbox(label="配置文件编码器", placeholder="请选择配置文件")
|
|
|
770 |
sid = gr.Dropdown(value="1030", visible=False)
|
771 |
|
772 |
#choice_ckpt.change(get_model_info, [choice_ckpt], [model_branch])
|
773 |
+
model_branch = Newget_model_info("G_308800.pth")
|
774 |
#config_choice.change(load_json_encoder, [config_choice], [config_info])
|
775 |
#refresh.click(refresh_options,[],[choice_ckpt,config_choice,cluster_choice,diff_choice,diff_config_choice])
|
776 |
|
|
|
818 |
pad_seconds = gr.Number(label="推理音频pad秒数,由于未知原因开头结尾会有异响,pad一小段静音段后就不会出现", value=0.5)
|
819 |
lg_num = gr.Number(label="两端音频切片的交叉淡入长度,如果自动切片后出现人声不连贯可调整该数值,如果连贯建议采用默认值0,注意,该设置会影响推理速度,单位为秒/s", value=1)
|
820 |
lgr_num = gr.Number(label="自动音频切片后,需要舍弃每段切片的头尾。该参数设置交叉长度保留的比例,范围0-1,左开右闭", value=0.75,interactive=True)
|
821 |
+
second_encoding = gr.Checkbox(label= "二次编码,浅扩散前会对原始音频进行二次编码,玄学选项,效果时好时差,默认关闭", value=False)
|
822 |
loudness_envelope_adjustment = gr.Number(label="输入源响度包络替换输出响度包络融合比例,越靠近1越使用输出响度包络", value = 0)
|
823 |
use_spk_mix = gr.Checkbox(label="动态声线融合,暂时没做完", value=False, interactive=False)
|
824 |
with gr.Row():
|
|
|
831 |
def Newvc_fn(sid, input_audio, vc_transform, auto_f0, cluster_ratio, slice_db, noise_scale, pad_seconds, cl_num, lg_num, lgr_num, f0_predictor, enhancer_adaptive_key, cr_threshold, k_step, use_spk_mix, second_encoding, loudness_envelope_adjustment, clus2):
|
832 |
global model, loaded
|
833 |
if loaded != clus2:
|
834 |
+
Newload_model_func("G_308800.pth",clus2,config_choice,enhance,diff_choice,diff_config_choice,only_diffusion,model_branch,using_device)
|
835 |
loaded = clus2
|
836 |
try:
|
837 |
if input_audio is None:
|
logs/44k/D_308800.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eec6363a6a64ee0713de2cbd167ae5cee3487f72a2a60093146a9279c998f073
|
3 |
+
size 561099143
|
logs/44k/G_308800.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:100c443a636b2801ef4a177f4eea59e0bd6290fca356cd2455596b6b82a6a1bd
|
3 |
+
size 627915739
|