Merge pull request #13 from chenxvb/main

fix bug
This commit is contained in:
liujing04 2023-04-06 11:12:34 +08:00 committed by GitHub
commit 8c62e5de8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -146,10 +146,10 @@ def uvr(model_name,inp_root,save_root_vocal,paths,save_root_ins):
#一个选项卡全局只能有一个音色
def get_vc(sid):
global n_spk,tgt_sr,net_g,vc,cpt
if(sid==""):
if(sid==[]):
global hubert_model
print("clean_empty_cache")
del net_g, n_spk, vc, hubert_model,tgt_sr#,cpt
del n_spk, vc, hubert_model,tgt_sr#,cpt
hubert_model = net_g=n_spk=vc=hubert_model=tgt_sr=None
torch.cuda.empty_cache()
###楼下不这么折腾清理不干净