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

Method forward

dmidas/blocks.py:300–317  ·  view source on GitHub ↗

Forward pass. Returns: tensor: output

(self, *xs)

Source from the content-addressed store, hash-verified

298 self.resConfUnit2 = ResidualConvUnit(features)
299
300 def forward(self, *xs):
301 """Forward pass.
302
303 Returns:
304 tensor: output
305 """
306 output = xs[0]
307
308 if len(xs) == 2:
309 output += self.resConfUnit1(xs[1])
310
311 output = self.resConfUnit2(output)
312
313 output = nn.functional.interpolate(
314 output, scale_factor=2, mode="bilinear", align_corners=True
315 )
316
317 return output
318
319
320

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected