MCPcopy Index your code
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / load_wts

Function load_wts

dzoedepth/models/model_io.py:54–56  ·  view source on GitHub ↗
(model, checkpoint_path)

Source from the content-addressed store, hash-verified

52
53
54def load_wts(model, checkpoint_path):
55 ckpt = torch.load(checkpoint_path, map_location='cpu')
56 return load_state_dict(model, ckpt)
57
58
59def load_state_dict_from_url(model, url, **kwargs):

Callers 2

load_ckptMethod · 0.90
load_state_from_resourceFunction · 0.85

Calls 2

load_state_dictFunction · 0.85
loadMethod · 0.80

Tested by

no test coverage detected