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

Method forward

lib/network_auxi.py:158–166  ·  view source on GitHub ↗
(self, low_x, high_x)

Source from the content-addressed store, hash-verified

156 self.init_params()
157
158 def forward(self, low_x, high_x):
159 n, c, _, _ = low_x.size()
160 x = torch.cat([low_x, high_x], 1)
161 x = self.avg_pool(x)
162 x = x.view(n, -1)
163 x = self.fc(x).view(n, c, 1, 1)
164 x = low_x * x + high_x
165
166 return x
167
168 def init_params(self):
169 for m in self.modules():

Callers

nothing calls this directly

Calls 1

catMethod · 0.80

Tested by

no test coverage detected