MCPcopy
hub / github.com/magicleap/SuperGluePretrainedNetwork / print

Method print

models/utils.py:83–96  ·  view source on GitHub ↗
(self, text='Timer')

Source from the content-addressed store, hash-verified

81 self.last_time = now
82
83 def print(self, text='Timer'):
84 total = 0.
85 print('[{}]'.format(text), end=' ')
86 for key in self.times:
87 val = self.times[key]
88 if self.will_print[key]:
89 print('%s=%.3f' % (key, val), end=' ')
90 total += val
91 print('total=%.3f sec {%.1f FPS}' % (total, 1./total), end=' ')
92 if self.newline:
93 print(flush=True)
94 else:
95 print(end='\r', flush=True)
96 self.reset()
97
98
99class VideoStreamer:

Callers 2

match_pairs.pyFile · 0.80
demo_superglue.pyFile · 0.80

Calls 1

resetMethod · 0.95

Tested by

no test coverage detected