MCPcopy Index your code
hub / github.com/tensorlayer/SRGAN / log_config

Function log_config

config.py:31–35  ·  view source on GitHub ↗
(filename, cfg)

Source from the content-addressed store, hash-verified

29config.VALID.lr_img_path = 'DIV2K/DIV2K_valid_LR_bicubic/X4/'
30
31def log_config(filename, cfg):
32 with open(filename, 'w') as f:
33 f.write("================================================\n")
34 f.write(json.dumps(cfg, indent=4))
35 f.write("\n================================================\n")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected