mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-01-20 02:51:09 +00:00
@@ -146,10 +146,10 @@ def uvr(model_name,inp_root,save_root_vocal,paths,save_root_ins):
|
|||||||
#一个选项卡全局只能有一个音色
|
#一个选项卡全局只能有一个音色
|
||||||
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
|
||||||
print("clean_empty_cache")
|
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
|
hubert_model = net_g=n_spk=vc=hubert_model=tgt_sr=None
|
||||||
torch.cuda.empty_cache()
|
torch.cuda.empty_cache()
|
||||||
###楼下不这么折腾清理不干净
|
###楼下不这么折腾清理不干净
|
||||||
|
|||||||
Reference in New Issue
Block a user