Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

模型大小不一致 #167

Open
Waitday opened this issue May 11, 2024 · 2 comments
Open

模型大小不一致 #167

Waitday opened this issue May 11, 2024 · 2 comments

Comments

@Waitday
Copy link

Waitday commented May 11, 2024

请问vits-bert-model.pth等效于G_1000.pth吗 推理正常,想请教为什么模型大小不同,下载的发布的vits-bert-model.pth 156M
自己训练出的G_1000.pth 564M

@Waitday Waitday changed the title 模型大小不一直 模型大小不一致 May 11, 2024
@MaxMax2016
Copy link
Collaborator

https://github.com/PlayVoice/vits_chinese/blob/bert_vits/utils.py#L81

https://github.com/PlayVoice/vits_chinese/blob/bert_vits/utils.py#L124

564M 包含的内容有:

torch.save(
{
"model": state_dict,
"iteration": iteration,
"optimizer": optimizer.state_dict(),
"learning_rate": learning_rate,
},
checkpoint_path,
)

156M包含的内容只有:

torch.save({'model': state_dict}, checkpoint_path)

@Waitday
Copy link
Author

Waitday commented May 11, 2024

收到,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants