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

Method forward

lib/network_auxi.py:384–393  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

382 self.initial_params()
383
384 def forward(self, x):
385 n, c, h, w = x.size()
386 x = self.conv1(x)
387 x = self.pool(x)
388 x = x.view(n, -1)
389 x = self.fc(x)
390 x = x.view(n, self.channels, 1, 1)
391 x = self.conv2(x)
392 x = x.repeat(1, 1, h, w)
393 return x
394
395 def initial_params(self, dev=0.01):
396 for m in self.modules():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected