Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
24
def
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_local
Function · 0.90
init_global
Function · 0.90
integrate
Function · 0.90
test.py
File · 0.90
Calls
2
instantiate_from_config
Function · 0.90
load
Method · 0.80
Tested by
no test coverage detected