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

Method forward

diffsynth/models/stepvideo_vae.py:252–259  ·  view source on GitHub ↗
(self, x, is_init=True, residual=None)

Source from the content-addressed store, hash-verified

250 self.is_first_run = True
251
252 def forward(self, x, is_init=True, residual=None):
253 x = nn.functional.pad(x,
254 self.time_causal_padding if is_init else self.time_uncausal_padding)
255
256 x = self.conv(x)
257 if residual is not None:
258 x.add_(residual)
259 return x
260
261
262class ChannelDuplicatingPixelUnshuffleUpSampleLayer3D(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected