MCPcopy
hub / github.com/Rudrabha/Wav2Lip / _load

Function _load

hq_wav2lip_train.py:366–372  ·  view source on GitHub ↗
(checkpoint_path)

Source from the content-addressed store, hash-verified

364 print("Saved checkpoint:", checkpoint_path)
365
366def _load(checkpoint_path):
367 if use_cuda:
368 checkpoint = torch.load(checkpoint_path)
369 else:
370 checkpoint = torch.load(checkpoint_path,
371 map_location=lambda storage, loc: storage)
372 return checkpoint
373
374
375def load_checkpoint(path, model, optimizer, reset_optimizer=False, overwrite_global_states=True):

Callers 1

load_checkpointFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected