MCPcopy Create free account
hub / github.com/OpenTalker/StyleHEAT / init_logging

Function init_logging

utils/logging.py:17–24  ·  view source on GitHub ↗
(opt)

Source from the content-addressed store, hash-verified

15
16
17def init_logging(opt):
18 date_uid = get_date_uid()
19 if opt.name is not None:
20 logdir = os.path.join(opt.checkpoints_dir, opt.name)
21 else:
22 logdir = os.path.join(opt.checkpoints_dir, date_uid)
23 opt.logdir = logdir
24 return date_uid, logdir
25
26@master_only
27def make_logging_dir(logdir, date_uid):

Callers 1

mainFunction · 0.90

Calls 1

get_date_uidFunction · 0.85

Tested by

no test coverage detected