MCPcopy
hub / github.com/myshell-ai/OpenVoice / load_ckpt

Method load_ckpt

openvoice/api.py:35–39  ·  view source on GitHub ↗
(self, ckpt_path)

Source from the content-addressed store, hash-verified

33 self.device = device
34
35 def load_ckpt(self, ckpt_path):
36 checkpoint_dict = torch.load(ckpt_path, map_location=torch.device(self.device))
37 a, b = self.model.load_state_dict(checkpoint_dict['model'], strict=False)
38 print("Loaded checkpoint '{}'".format(ckpt_path))
39 print('missing/unexpected keys:', a, b)
40
41
42class BaseSpeakerTTS(OpenVoiceBaseClass):

Callers 1

openvoice_app.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected