From e8c53643e7034d553d9d6eec3164a0128404872a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=9C=E4=BA=91?= Date: Sat, 18 Apr 2026 14:59:30 +0800 Subject: [PATCH] Drop unrelated checkpoint helper change from PR --- GPT_SoVITS/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GPT_SoVITS/utils.py b/GPT_SoVITS/utils.py index a0fe21a6..08e18384 100644 --- a/GPT_SoVITS/utils.py +++ b/GPT_SoVITS/utils.py @@ -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):