MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / forward

Method forward

diffsynth/models/hunyuan_video_dit.py:582–586  ·  view source on GitHub ↗
(self, x, c)

Source from the content-addressed store, hash-verified

580 self.adaLN_modulation = torch.nn.Sequential(torch.nn.SiLU(), torch.nn.Linear(hidden_size, 2 * hidden_size))
581
582 def forward(self, x, c):
583 shift, scale = self.adaLN_modulation(c).chunk(2, dim=1)
584 x = modulate(self.norm_final(x), shift=shift, scale=scale)
585 x = self.linear(x)
586 return x
587
588
589class HunyuanVideoDiT(torch.nn.Module):

Callers

nothing calls this directly

Calls 1

modulateFunction · 0.70

Tested by

no test coverage detected