MCPcopy
hub / github.com/open-mmlab/mmpose / update

Method update

mmpose/utils/timer.py:21–24  ·  view source on GitHub ↗

Update a new data sample.

(self, value)

Source from the content-addressed store, hash-verified

19 self._data = []
20
21 def update(self, value):
22 """Update a new data sample."""
23 self._data.append(value)
24 self._data = self._data[-self.window:]
25
26 def average(self):
27 """Get the average value of current window."""

Calls

no outgoing calls

Tested by 15

build_hand_3d_heatmapMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
get_h36m_sampleFunction · 0.36
test_transformMethod · 0.36
build_aflw_datasetMethod · 0.36
build_cofw_datasetMethod · 0.36
build_wflw_datasetMethod · 0.36