MCPcopy Create free account
hub / github.com/adobe-research/custom-diffusion / get_model

Function get_model

src/composenW.py:34–37  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

32
33
34def get_model(path):
35 config = OmegaConf.load("configs/custom-diffusion/finetune.yaml")
36 model = load_model_from_config(config, path)
37 return model, config
38
39
40def gdupdateWexact(K, V, Ktarget1, Vtarget1, W, device='cuda'):

Callers 1

composeFunction · 0.85

Calls 1

load_model_from_configFunction · 0.70

Tested by

no test coverage detected