mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-05-20 09:28:11 +08:00
Drop unrelated checkpoint helper change from PR
This commit is contained in:
parent
96b8701186
commit
e8c53643e7
@ -69,8 +69,7 @@ def my_save(fea, path): #####fix issue: torch.save doesn't support chinese path
|
||||
name = os.path.basename(path)
|
||||
tmp_path = "%s.pth" % (ttime())
|
||||
torch.save(fea, tmp_path)
|
||||
os.makedirs(dir, exist_ok=True)
|
||||
os.replace(tmp_path, "%s/%s" % (dir, name))
|
||||
shutil.move(tmp_path, "%s/%s" % (dir, name))
|
||||
|
||||
|
||||
def save_checkpoint(model, optimizer, learning_rate, iteration, checkpoint_path):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user