rearranged repo

This commit is contained in:
Plachta
2023-04-21 21:39:41 +08:00
parent 2612e5dbcc
commit 3d7e4220d4
7 changed files with 28 additions and 28 deletions
+5 -5
View File
@@ -21,16 +21,16 @@ if __name__ == "__main__":
hps['speakers'][speaker] = i
hps['data']['n_speakers'] = len(valid_speakers)
model_sd['model']['emb_g.weight'] = new_emb_g
with open("../finetune_speaker.json", 'w', encoding='utf-8') as f:
with open("./finetune_speaker.json", 'w', encoding='utf-8') as f:
json.dump(hps, f, indent=2)
torch.save(model_sd, "../G_latest.pth")
torch.save(model_sd, "./G_latest.pth")
else:
with open("../finetune_speaker.json", 'w', encoding='utf-8') as f:
with open("./finetune_speaker.json", 'w', encoding='utf-8') as f:
json.dump(hps, f, indent=2)
torch.save(model_sd, "../G_latest.pth")
torch.save(model_sd, "./G_latest.pth")
# save another config file copy in MoeGoe format
hps['speakers'] = valid_speakers
with open("../moegoe_config.json", 'w', encoding='utf-8') as f:
with open("./moegoe_config.json", 'w', encoding='utf-8') as f:
json.dump(hps, f, indent=2)