MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / update

Method update

detrsmpl/utils/demo_utils.py:728–731  ·  view source on GitHub ↗

Update a new data sample.

(self, value)

Source from the content-addressed store, hash-verified

726 self._data = []
727
728 def update(self, value):
729 """Update a new data sample."""
730 self._data.append(value)
731 self._data = self._data[-self.window:]
732
733 def average(self):
734 """Get the average value of current window."""

Callers 15

timeitMethod · 0.45
_prepare_body_modelFunction · 0.45
render_smplFunction · 0.45
_init_rendererMethod · 0.45
renderFunction · 0.45
_init_rendererMethod · 0.45
infoMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by 2

single_gpu_testFunction · 0.36
multi_gpu_testFunction · 0.36