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

Method forward

diffsynth/models/omnigen.py:320–323  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

318 self.proj = nn.Conv2d(in_chans, embed_dim, kernel_size=patch_size, stride=patch_size, bias=bias)
319
320 def forward(self, x):
321 x = self.proj(x)
322 x = x.flatten(2).transpose(1, 2) # NCHW -> NLC
323 return x
324
325
326class OmniGenOriginalModel(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected