MCPcopy Create free account
hub / github.com/KeepTryingTo/Pytorch-GAN / __init__

Method __init__

StyleGAN/net/model.py:109–114  ·  view source on GitHub ↗
(self,channel,w_dim)

Source from the content-addressed store, hash-verified

107#是一个Batch Normazliation
108class AdaIN(torch.nn.Module):
109 def __init__(self,channel,w_dim):
110 super(AdaIN, self).__init__()
111 #https://blog.csdn.net/OneFlow_Official/article/details/123288435
112 self.instance_norm = torch.nn.InstanceNorm2d(channel)
113 self.style_scale = WSLinear(w_dim,channel)
114 self.style_bias = WSLinear(w_dim,channel)
115
116 def forward(self,x,w):
117 x = self.instance_norm(x)

Callers 9

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__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 1

WSLinearClass · 0.85

Tested by

no test coverage detected