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

When infer the local model, RuntimeError: Error(s) in loading state_dict for SynthesizerTrn #109

Open
SRbone opened this issue Apr 22, 2024 · 0 comments

Comments

@SRbone
Copy link

SRbone commented Apr 22, 2024

model = TTS(language='ZH_MIX_EN', device='cpu')
File "D:\melo\api.py", line 60, in init
self.model.load_state_dict(checkpoint_dict['model'], strict=True)
File "C:\Users\lib\site-packages\torch\nn\modules\module.py", line 2152, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for SynthesizerTrn:
size mismatch for emb_g.weight: copying a param with shape torch.Size([256, 256]) from checkpoint, the shape in current model is torch.Size([1, 256]).

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

1 participant