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

Class TGrow

examples/WanVSR/utils/TCDecoder.py:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 return self.conv(x.reshape(-1, self.stride * C, H, W))
62
63class TGrow(nn.Module):
64 def __init__(self, n_f, stride):
65 super().__init__()
66 self.stride = stride
67 self.conv = nn.Conv2d(n_f, n_f*stride, 1, bias=False)
68 def forward(self, x):
69 _NT, C, H, W = x.shape
70 x = self.conv(x)
71 return x.reshape(-1, C, H, W)
72
73class PixelShuffle3d(nn.Module):
74 def __init__(self, ff, hh, ww):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected