MCPcopy
hub / github.com/rbgirshick/fast-rcnn / toc

Method toc

lib/utils/timer.py:24–32  ·  view source on GitHub ↗
(self, average=True)

Source from the content-addressed store, hash-verified

22 self.start_time = time.time()
23
24 def toc(self, average=True):
25 self.diff = time.time() - self.start_time
26 self.total_time += self.diff
27 self.calls += 1
28 self.average_time = self.total_time / self.calls
29 if average:
30 return self.average_time
31 else:
32 return self.diff

Callers 6

_get_feature_scaleMethod · 0.95
get_pos_examplesMethod · 0.95
demoFunction · 0.95
train_modelMethod · 0.95
test_netFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_netFunction · 0.64