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

Method __init__

models/float/styledecoder.py:365–372  ·  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

363
364class ToRGB(nn.Module):
365 def __init__(self, in_channel, style_dim, upsample=True, blur_kernel=[1, 3, 3, 1]):
366 super().__init__()
367
368 if upsample:
369 self.upsample = Upsample(blur_kernel)
370
371 self.conv = ConvLayer(in_channel, 3, 1)
372 self.bias = nn.Parameter(torch.zeros(1, 3, 1, 1))
373
374 def forward(self, input, skip=None):
375 out = self.conv(input)

Callers

nothing calls this directly

Calls 3

UpsampleClass · 0.85
ConvLayerClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected