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

Method __init__

diffsynth/models/stepvideo_vae.py:439–452  ·  view source on GitHub ↗
(self,
        chan_in,
        chan_out,
        kernel_size,
        **kwargs
    )

Source from the content-addressed store, hash-verified

437
438class CausalConvAfterNorm(CausalConv):
439 def __init__(self,
440 chan_in,
441 chan_out,
442 kernel_size,
443 **kwargs
444 ):
445 super().__init__(
446 chan_in, chan_out, kernel_size, **kwargs)
447
448 if self.time_causal_padding == (1, 1, 1, 1, 2, 0):
449 self.conv = nn.Conv3d(chan_in, chan_out, kernel_size, stride=self.stride, dilation=self.dilation, padding=(0, 1, 1), **kwargs)
450 else:
451 self.conv = nn.Conv3d(chan_in, chan_out, kernel_size, stride=self.stride, dilation=self.dilation, **kwargs)
452 self.is_first_run = True
453
454 def forward(self, x, is_init=True, residual=None):
455 if self.is_first_run:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected