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

Method __init__

diffsynth/models/stepvideo_vae.py:545–554  ·  view source on GitHub ↗
(self,
        in_channels,
        with_conv,
        stride
    )

Source from the content-addressed store, hash-verified

543
544class Downsample3D(nn.Module):
545 def __init__(self,
546 in_channels,
547 with_conv,
548 stride
549 ):
550 super().__init__()
551
552 self.with_conv = with_conv
553 if with_conv:
554 self.conv = CausalConv(in_channels, in_channels, kernel_size=3, stride=stride)
555
556 def forward(self, x, is_init=True):
557 if self.with_conv:

Callers

nothing calls this directly

Calls 2

CausalConvClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected