myshell-ai / OpenVoice

Instant voice cloning by MyShell.
https://research.myshell.ai/open-voice
MIT License
27.37k stars 2.65k forks source link

missing/unexpected keys? #219

Open ahmetkca opened 2 months ago

ahmetkca commented 2 months ago
/Users/ahmetkca/Projects/OpenVoice/.venv/lib/python3.9/site-packages/torch/nn/utils/weight_norm.py:28: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
  warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.")
Loaded checkpoint 'checkpoints/converter/checkpoint.pth'
missing/unexpected keys: [] []
mumu029 commented 2 months ago

@ahmetkca Have you solved it yet?

ballerburg9005 commented 1 month ago

same problem here with v2

mr-burhanuddin commented 1 month ago

same probelm, does amyone got the solution ? if yes please let me know

Ch3my commented 1 month ago

I'm experiencing the same in Google Colab using T4, OpenVoice V2

murilocurti commented 1 month ago

Same here

rkben commented 1 month ago

This isn't a error. It's just a print debug sanity check.

    def load_ckpt(self, ckpt_path):
        checkpoint_dict = torch.load(ckpt_path, map_location=torch.device(self.device))
        a, b = self.model.load_state_dict(checkpoint_dict['model'], strict=False)
        print("Loaded checkpoint '{}'".format(ckpt_path))
        print('missing/unexpected keys:', a, b)

https://github.com/myshell-ai/OpenVoice/blob/main/openvoice/api.py#L39