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

Can't load checkpoints #5

Open
chiakianyka opened this issue Feb 11, 2023 · 0 comments
Open

Can't load checkpoints #5

chiakianyka opened this issue Feb 11, 2023 · 0 comments

Comments

@chiakianyka
Copy link

I can't load vits checkpoints it appear this message

Traceback (most recent call last):
File "D:\Vits\vits\choose_VITS_model.py", line 176, in buttonBox_accept
real_basic_UI.VITS_Class = use_main.multy_speaker_model(path_of_pth=real_basic_UI.path_of_pth,path_of_json=real_basic_UI.path_of_json)
File "D:\Vits\vits\use_main.py", line 74, in init
self._ = utils.load_checkpoint(path_of_pth, self.net_g, None)
File "D:\Vits\vits\utils.py", line 40, in load_checkpoint
model.load_state_dict(new_state_dict)
File "C:\Users\Chiak\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\nn\modules\module.py", line 1671, 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 enc_p.emb.weight: copying a param with shape torch.Size([40, 192]) from checkpoint, the shape in current model is torch.Size([43, 192]).

How I can fix it thank!

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