OpenVoice icon indicating copy to clipboard operation
OpenVoice copied to clipboard

missing/unexpected keys?

Open ahmetkca opened this issue 9 months ago • 6 comments

/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: [] []

ahmetkca avatar May 05 '24 23:05 ahmetkca

@ahmetkca Have you solved it yet?

mumu029 avatar May 13 '24 06:05 mumu029

same problem here with v2

ballerburg9005 avatar May 26 '24 19:05 ballerburg9005

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

mr-burhanuddin avatar Jun 10 '24 11:06 mr-burhanuddin

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

Ch3my avatar Jun 10 '24 21:06 Ch3my

Same here

murilocurti avatar Jun 15 '24 15:06 murilocurti

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

rkben avatar Jun 19 '24 12:06 rkben