MCPcopy
hub / github.com/yerfor/GeneFacePlusPlus / update

Method update

utils/commons/meters.py:15–18  ·  view source on GitHub ↗
(self, val, n=1)

Source from the content-addressed store, hash-verified

13 self.cnt = 0
14
15 def update(self, val, n=1):
16 self.sum += val * n
17 self.cnt += n
18 self.avg = self.sum / self.cnt
19
20
21class Timer:

Callers 15

visualizeFunction · 0.45
crepe_with_correctorFunction · 0.45
set_hparamsFunction · 0.45
training_stepMethod · 0.45
validation_endMethod · 0.45
ddp_runMethod · 0.45
run_training_batchMethod · 0.45
parseMethod · 0.45
infer_once_argsMethod · 0.45
toggle_audio_fileFunction · 0.45
ref_video_fnFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected