MCPcopy 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
53def modulate(x, shift, scale):
54 return x * (1 + scale.unsqueeze(1)) + shift.unsqueeze(1)
55
56
57def t2i_modulate(x, shift, scale):

Callers 2

forwardMethod · 0.85
forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected