Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ modulate
Function
modulate
sat/dit_video_concat.py:438–439 ·
view source on GitHub ↗
(x, shift, scale)
Source
from the content-addressed store, hash-verified
436
437
438
def
modulate(x, shift, scale):
439
return
x * (1 + scale.unsqueeze(1)) + shift.unsqueeze(1)
440
441
442
def
unpatchify(x, c, p, w, h, rope_position_ids=None, **kwargs):
Callers
4
separate_modulate
Method · 0.85
final_forward
Method · 0.85
separate_modulate
Method · 0.85
layer_forward
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected