Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/zigma
/ modulate
Function
modulate
model_zigma.py:53–54 ·
view source on GitHub ↗
(x, shift, scale)
Source
from the content-addressed store, hash-verified
51
52
53
def
modulate(x, shift, scale):
54
return
x * (1 + scale.unsqueeze(1)) + shift.unsqueeze(1)
55
56
57
def
t2i_modulate(x, shift, scale):
Callers
2
forward
Method · 0.85
forward
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected