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

Method forward

diffsynth/models/hunyuan_dit.py:187–190  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

185 self.proj = torch.nn.Conv2d(in_chans, embed_dim, kernel_size=patch_size, stride=patch_size, bias=bias)
186
187 def forward(self, x):
188 x = self.proj(x)
189 x = x.flatten(2).transpose(1, 2) # BCHW -> BNC
190 return x
191
192
193def timestep_embedding(t, dim, max_period=10000, repeat_only=False):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected