Skip to content

Commit 8c62e5d

Browse files
authored
Merge pull request #13 from chenxvb/main
fix bug
2 parents ebd938f + 86f76f8 commit 8c62e5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infer-web.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ def uvr(model_name,inp_root,save_root_vocal,paths,save_root_ins):
146146
#一个选项卡全局只能有一个音色
147147
def get_vc(sid):
148148
global n_spk,tgt_sr,net_g,vc,cpt
149-
if(sid==""):
149+
if(sid==[]):
150150
global hubert_model
151151
print("clean_empty_cache")
152-
del net_g, n_spk, vc, hubert_model,tgt_sr#,cpt
152+
del n_spk, vc, hubert_model,tgt_sr#,cpt
153153
hubert_model = net_g=n_spk=vc=hubert_model=tgt_sr=None
154154
torch.cuda.empty_cache()
155155
###楼下不这么折腾清理不干净

0 commit comments

Comments
 (0)