MCPcopy
hub / github.com/dbolya/yolact / append

Method append

utils/functions.py:28–30  ·  view source on GitHub ↗

Same as add just more pythonic.

(self, elem)

Source from the content-addressed store, hash-verified

26 self.sum -= self.window.popleft()
27
28 def append(self, elem):
29 """ Same as add just more pythonic. """
30 self.add(elem)
31
32 def reset(self):
33 """ Resets the MovingAverage to its initial state. """

Callers 15

plotMethod · 0.95
smootherFunction · 0.95
add_bboxMethod · 0.80
add_maskMethod · 0.80
dump_webMethod · 0.80
pushMethod · 0.80
get_apMethod · 0.80
get_next_frameFunction · 0.80
evalvideoFunction · 0.80
calc_mapFunction · 0.80
prepare_dataFunction · 0.80
forwardMethod · 0.80

Calls 1

addMethod · 0.95

Tested by

no test coverage detected