MCPcopy Create free account
hub / github.com/ShihaoZhaoZSH/Uni-ControlNet / create_model

Function create_model

models/util.py:24–28  ·  view source on GitHub ↗
(config_path)

Source from the content-addressed store, hash-verified

22
23
24def create_model(config_path):
25 config = OmegaConf.load(config_path)
26 model = instantiate_from_config(config.model).cpu()
27 print(f'Loaded model config from [{config_path}]')
28 return model

Callers 4

init_localFunction · 0.90
init_globalFunction · 0.90
integrateFunction · 0.90
test.pyFile · 0.90

Calls 2

instantiate_from_configFunction · 0.90
loadMethod · 0.80

Tested by

no test coverage detected