MCPcopy Create free account
hub / github.com/deepbrainai-research/float / __init__

Method __init__

models/float/styledecoder.py:386–393  ·  view source on GitHub ↗
(self, in_channel, style_dim, upsample=True, blur_kernel=[1, 3, 3, 1])

Source from the content-addressed store, hash-verified

384
385class ToFlow(nn.Module):
386 def __init__(self, in_channel, style_dim, upsample=True, blur_kernel=[1, 3, 3, 1]):
387 super().__init__()
388
389 if upsample:
390 self.upsample = Upsample(blur_kernel)
391
392 self.conv = ModulatedConv2d(in_channel, 3, 1, style_dim, demodulate=False)
393 self.bias = nn.Parameter(torch.zeros(1, 3, 1, 1))
394
395 def forward(self, input, style, feat, skip=None):
396 out = self.conv(input, style)

Callers

nothing calls this directly

Calls 3

UpsampleClass · 0.85
ModulatedConv2dClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected