MCPcopy Create free account
hub / github.com/RenderKit/oidn / main

Function main

training/visualize.py:12–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10from result import *
11
12def main():
13 # Parse the command line arguments
14 cfg = parse_args(description='Invokes TensorBoard for visualizing statistics of a training result.')
15
16 result_dir = get_result_dir(cfg)
17 if not os.path.isdir(result_dir):
18 error('result does not exist')
19
20 # Run TensorBoard
21 log_dir = os.path.join(result_dir, 'log')
22 os.system('tensorboard --logdir=' + log_dir)
23
24if __name__ == '__main__':
25 main()

Callers 1

visualize.pyFile · 0.70

Calls 3

parse_argsFunction · 0.85
get_result_dirFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected