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

Method __init__

examples/WanVSR/utils/TCDecoder.py:55–58  ·  view source on GitHub ↗
(self, n_f, stride)

Source from the content-addressed store, hash-verified

53
54class TPool(nn.Module):
55 def __init__(self, n_f, stride):
56 super().__init__()
57 self.stride = stride
58 self.conv = nn.Conv2d(n_f*stride, n_f, 1, bias=False)
59 def forward(self, x):
60 _NT, C, H, W = x.shape
61 return self.conv(x.reshape(-1, self.stride * C, H, W))

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected