MCPcopy Create free account
hub / github.com/CompVis/zigma / namespace_to_dict

Function namespace_to_dict

wandb_utils.py:24–28  ·  view source on GitHub ↗
(namespace)

Source from the content-addressed store, hash-verified

22
23
24def namespace_to_dict(namespace):
25 return {
26 k: namespace_to_dict(v) if isinstance(v, argparse.Namespace) else v
27 for k, v in vars(namespace).items()
28 }
29
30
31def get_max_ckpt_from_dir(dir_path):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected