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

Method forward

diffsynth/models/omnigen.py:248–252  ·  view source on GitHub ↗
(self, x, c)

Source from the content-addressed store, hash-verified

246 )
247
248 def forward(self, x, c):
249 shift, scale = self.adaLN_modulation(c).chunk(2, dim=1)
250 x = modulate(self.norm_final(x), shift, scale)
251 x = self.linear(x)
252 return x
253
254
255def get_2d_sincos_pos_embed(embed_dim, grid_size, cls_token=False, extra_tokens=0, interpolation_scale=1.0, base_size=1):

Callers

nothing calls this directly

Calls 1

modulateFunction · 0.70

Tested by

no test coverage detected