mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2024-12-29 19:15:04 +08:00
fix path
This commit is contained in:
parent
b831d67bbf
commit
5251e75ab1
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user