1
0
mirror of synced 2024-12-18 18:35:54 +01:00

default sr->40k is the best; unload weight debug []->""

default sr->40k is the best; unload weight debug []->""
This commit is contained in:
RVC-Boss 2023-05-11 03:07:02 +08:00 committed by GitHub
parent 339a116074
commit c84371844a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,7 +310,7 @@ def uvr(model_name, inp_root, save_root_vocal, paths, save_root_ins, agg):
# 一个选项卡全局只能有一个音色 # 一个选项卡全局只能有一个音色
def get_vc(sid): def get_vc(sid):
global n_spk, tgt_sr, net_g, vc, cpt global n_spk, tgt_sr, net_g, vc, cpt
if sid == []: if sid == "":
global hubert_model global hubert_model
if hubert_model != None: # 考虑到轮询, 需要加个判断看是否 sid 是由有模型切换到无模型的 if hubert_model != None: # 考虑到轮询, 需要加个判断看是否 sid 是由有模型切换到无模型的
print("clean_empty_cache") print("clean_empty_cache")
@ -1233,7 +1233,7 @@ with gr.Blocks() as app:
sr2 = gr.Radio( sr2 = gr.Radio(
label=i18n("目标采样率"), label=i18n("目标采样率"),
choices=["32k", "40k", "48k"], choices=["32k", "40k", "48k"],
value="48k", value="40k",
interactive=True, interactive=True,
) )
if_f0_3 = gr.Radio( if_f0_3 = gr.Radio(