From bdf238cccb4f301e775e3c2ccf25e8c4edfbcd3c Mon Sep 17 00:00:00 2001 From: vior <924270047@qq.com> Date: Wed, 5 Apr 2023 22:58:49 +0800 Subject: [PATCH 1/2] fix 'weights/[]' --- infer-web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infer-web.py b/infer-web.py index 403ac7c..e89c7c7 100644 --- a/infer-web.py +++ b/infer-web.py @@ -146,7 +146,7 @@ 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 From 86f76f8a03cc26ec6432c2b07c17825777661e70 Mon Sep 17 00:00:00 2001 From: vior <924270047@qq.com> Date: Wed, 5 Apr 2023 23:15:35 +0800 Subject: [PATCH 2/2] fix bug --- infer-web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infer-web.py b/infer-web.py index e89c7c7..3eaf2fb 100644 --- a/infer-web.py +++ b/infer-web.py @@ -149,7 +149,7 @@ def get_vc(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() ###楼下不这么折腾清理不干净