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

Function as_minutes

text2motion/utils/utils.py:38–41  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

36def print_current_loss(start_time, niter_state, losses, epoch=None, inner_iter=None):
37
38 def as_minutes(s):
39 m = math.floor(s / 60)
40 s -= m * 60
41 return '%dm %ds' % (m, s)
42
43 def time_since(since, percent):
44 now = time.time()

Callers 2

time_sinceFunction · 0.85
print_current_lossFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected