MCPcopy Create free account
hub / github.com/NVlabs/SPADE / copyconf

Function copyconf

util/util.py:32–37  ·  view source on GitHub ↗
(default_opt, **kwargs)

Source from the content-addressed store, hash-verified

30
31
32def copyconf(default_opt, **kwargs):
33 conf = argparse.Namespace(**vars(default_opt))
34 for key in kwargs:
35 print(key, kwargs[key])
36 setattr(conf, key, kwargs[key])
37 return conf
38
39
40def tile_images(imgs, picturesPerRow=4):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected