Skip to content

easy-infer2 not working  #3

@TheTrustyHammer

Description

@TheTrustyHammer

always get this attempting to load a RVC V2 model

loading weights/XXXV1.pth
gin_channels: 256 self.spk_embed_dim: 109
Traceback (most recent call last):
File "easy-infer2.py", line 443, in
get_vc(sorted(names)[0])
File "easy-infer2.py", line 295, in get_vc
print(net_g.load_state_dict(cpt["weight"], strict=False)) # 不加这一行清不干净, 真奇葩
File "C:\Users\U\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\nn\modules\module.py", line 1497, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for SynthesizerTrnMs256NSFsid:
size mismatch for enc_p.emb_phone.weight: copying a param with shape torch.Size([192, 768]) from checkpoint, the shape in current model is torch.Size([192, 256]).

Is it really updated to work with V2?

Ironically - EasierGUI.py works just fine loading the same model.

Can you please clarify what's wrong or fix easy-infer2.py please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions