mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-01-04 05:55:04 +08:00
commit
34fa3be51e
@ -148,8 +148,9 @@ def get_vc(sid):
|
||||
global n_spk,tgt_sr,net_g,vc,cpt
|
||||
if(sid==[]):
|
||||
global hubert_model
|
||||
if (hubert_model != None): # 考虑到轮询,需要加个判断看是否 sid 是由有模型切换到无模型的
|
||||
print("clean_empty_cache")
|
||||
del n_spk, vc, hubert_model,tgt_sr#,cpt
|
||||
del net_g, n_spk, vc, hubert_model,tgt_sr#,cpt
|
||||
hubert_model = net_g=n_spk=vc=hubert_model=tgt_sr=None
|
||||
torch.cuda.empty_cache()
|
||||
###楼下不这么折腾清理不干净
|
||||
|
Loading…
Reference in New Issue
Block a user