mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-01-04 14:05:04 +08:00
Format code (#850)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
23f64d3aa8
commit
3ae444b05c
@ -154,6 +154,7 @@ for name in os.listdir(weight_uvr5_root):
|
|||||||
|
|
||||||
cpt = None
|
cpt = None
|
||||||
|
|
||||||
|
|
||||||
def vc_single(
|
def vc_single(
|
||||||
sid,
|
sid,
|
||||||
input_audio_path,
|
input_audio_path,
|
||||||
@ -426,7 +427,8 @@ def get_vc(sid, to_return_protect0, to_return_protect1):
|
|||||||
else:
|
else:
|
||||||
net_g = SynthesizerTrnMs768NSFsid_nono(*cpt["config"])
|
net_g = SynthesizerTrnMs768NSFsid_nono(*cpt["config"])
|
||||||
del net_g, cpt
|
del net_g, cpt
|
||||||
if torch.cuda.is_available(): torch.cuda.empty_cache()
|
if torch.cuda.is_available():
|
||||||
|
torch.cuda.empty_cache()
|
||||||
return {"visible": False, "__type__": "update"}
|
return {"visible": False, "__type__": "update"}
|
||||||
person = "%s/%s" % (weight_root, sid)
|
person = "%s/%s" % (weight_root, sid)
|
||||||
print("loading %s" % person)
|
print("loading %s" % person)
|
||||||
|
Loading…
Reference in New Issue
Block a user