MCPcopy Create free account
hub / github.com/OpenImagingLab/4DSloMo / recursive_merge

Function recursive_merge

train.py:383–389  ·  view source on GitHub ↗
(key, host)

Source from the content-addressed store, hash-verified

381
382 cfg = OmegaConf.load(args.config)
383 def recursive_merge(key, host):
384 if isinstance(host[key], DictConfig):
385 for key1 in host[key].keys():
386 recursive_merge(key1, host[key])
387 else:
388 assert hasattr(args, key), key
389 setattr(args, key, host[key])
390 for k in cfg.keys():
391 recursive_merge(k, cfg)
392

Callers 1

train.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected