MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / TGrow

Class TGrow

wan/models/wan_vae_tiny.py:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44class TGrow(nn.Module):
45 def __init__(self, n_f, stride):
46 super().__init__()
47 self.stride = stride
48 self.conv = nn.Conv2d(n_f, n_f * stride, 1, bias=False)
49
50 def forward(self, x):
51 _NT, C, H, W = x.shape
52 x = self.conv(x)
53 return x.reshape(-1, C, H, W)
54
55
56def apply_model_with_memblocks(model, x, parallel, show_progress_bar):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected