fix: weights folder

This commit is contained in:
源文雨
2023-08-30 00:27:23 +08:00
parent 417c1e58a1
commit 1890584496
5 changed files with 6 additions and 6 deletions

View File

@@ -197,7 +197,7 @@ def change_info(path, info, name):
ckpt["info"] = info
if name == "":
name = os.path.basename(path)
torch.save(ckpt, "weights/%s" % name)
torch.save(ckpt, "assets/weights/%s" % name)
return "Success."
except:
return traceback.format_exc()