mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-06-03 20:40:30 +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)
|
name = os.path.basename(path)
|
||||||
tmp_path = "%s.pth" % (ttime())
|
tmp_path = "%s.pth" % (ttime())
|
||||||
torch.save(fea, tmp_path)
|
torch.save(fea, tmp_path)
|
||||||
os.makedirs(dir, exist_ok=True)
|
shutil.move(tmp_path, "%s/%s" % (dir, name))
|
||||||
os.replace(tmp_path, "%s/%s" % (dir, name))
|
|
||||||
|
|
||||||
|
|
||||||
def save_checkpoint(model, optimizer, learning_rate, iteration, checkpoint_path):
|
def save_checkpoint(model, optimizer, learning_rate, iteration, checkpoint_path):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user