This commit is contained in:
Ftps 2023-08-27 19:12:30 +09:00
parent b831d67bbf
commit 5251e75ab1
1 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ def savee(ckpt, sr, if_f0, name, epoch, version, hps):
opt["sr"] = sr
opt["f0"] = if_f0
opt["version"] = version
torch.save(opt, "weights/%s.pth" % name)
torch.save(opt, "assets/weights/%s.pth" % name)
return "Success."
except:
return traceback.format_exc()
@ -182,7 +182,7 @@ def extract_small_model(path, name, sr, if_f0, info, version):
opt["version"] = version
opt["sr"] = sr
opt["f0"] = int(if_f0)
torch.save(opt, "weights/%s.pth" % name)
torch.save(opt, "assets/weights/%s.pth" % name)
return "Success."
except:
return traceback.format_exc()
@ -252,7 +252,7 @@ def merge(path1, path2, alpha1, sr, f0, info, name, version):
opt["f0"] = 1 if f0 == i18n("") else 0
opt["version"] = version
opt["info"] = info
torch.save(opt, "weights/%s.pth" % name)
torch.save(opt, "assets/weights/%s.pth" % name)
return "Success."
except:
return traceback.format_exc()