MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / __init__

Method __init__

lib/network_auxi.py:148–156  ·  view source on GitHub ↗
(self, inchannels, reduction=8)

Source from the content-addressed store, hash-verified

146
147class ATA(nn.Module):
148 def __init__(self, inchannels, reduction=8):
149 super(ATA, self).__init__()
150 self.inchannels = inchannels
151 self.avg_pool = nn.AdaptiveAvgPool2d(1)
152 self.fc = nn.Sequential(nn.Linear(self.inchannels * 2, self.inchannels // reduction),
153 nn.ReLU(inplace=True),
154 nn.Linear(self.inchannels // reduction, self.inchannels),
155 nn.Sigmoid())
156 self.init_params()
157
158 def forward(self, low_x, high_x):
159 n, c, _, _ = low_x.size()

Callers

nothing calls this directly

Calls 2

init_paramsMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected