Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/showlab/Show-o
/ update
Method
update
show-o2/utils.py:102–106 ·
view source on GitHub ↗
(self, val, n=1)
Source
from the content-addressed store, hash-verified
100
self.count = 0
101
102
def
update(self, val, n=1):
103
self.val = val
104
self.sum += val * n
105
self.count += n
106
self.avg = self.sum / self.count
107
108
109
def
denorm(images):
Callers
14
main
Function · 0.95
main
Function · 0.95
main
Function · 0.95
load_state_dict
Function · 0.45
forward
Method · 0.45
forward
Method · 0.45
forward
Method · 0.45
forward
Method · 0.45
forward
Method · 0.45
_video_vae
Function · 0.45
forward
Method · 0.45
forward
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected