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

Method forward

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

Source from the content-addressed store, hash-verified

425 self.time_uncausal_padding = (0, 0) + self.time_uncausal_padding
426
427 def forward(self, x, is_init=True, residual=None):
428 if self.is_first_run:
429 self.is_first_run = False
430 # self.conv.weight = nn.Parameter(self.conv.weight.permute(0,2,3,4,1).contiguous())
431
432 x = nn.functional.pad(x,
433 self.time_causal_padding if is_init else self.time_uncausal_padding)
434
435 x = base_conv3d_channel_last(x, self.conv, residual=residual)
436 return x
437
438class CausalConvAfterNorm(CausalConv):
439 def __init__(self,

Callers

nothing calls this directly

Calls 1

base_conv3d_channel_lastFunction · 0.85

Tested by

no test coverage detected