MCPcopy Create free account
hub / github.com/MotrixLab/MotionDiffuse / save_logfile

Function save_logfile

text2motion/utils/utils.py:27–33  ·  view source on GitHub ↗
(log_loss, save_path)

Source from the content-addressed store, hash-verified

25
26
27def save_logfile(log_loss, save_path):
28 with open(save_path, 'wt') as f:
29 for k, v in log_loss.items():
30 w_line = k
31 for digit in v:
32 w_line += ' %.3f' % digit
33 f.write(w_line + '\n')
34
35
36def print_current_loss(start_time, niter_state, losses, epoch=None, inner_iter=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected