MCPcopy Index your code
hub / github.com/CompVis/diff2flow / load_partial_from_config

Function load_partial_from_config

diff2flow/helpers.py:26–27  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

24
25
26def load_partial_from_config(config):
27 return partial(get_obj_from_str(config['target']),**config.get('params',dict()))
28
29
30def load_model_from_config(config, ckpt, verbose=False, ignore_keys=[]):

Callers 2

make_loaderMethod · 0.90
configure_optimizersMethod · 0.90

Calls 1

get_obj_from_strFunction · 0.85

Tested by

no test coverage detected