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

Method forward

lib/network_auxi.py:52–62  ·  view source on GitHub ↗
(self, features)

Source from the content-addressed store, hash-verified

50 init.constant_(m.bias, 0)
51
52 def forward(self, features):
53 x_32x = self.conv(features[3]) # 1/32
54 x_32 = self.conv1(x_32x)
55 x_16 = self.upsample(x_32) # 1/16
56
57 x_8 = self.ffm2(features[2], x_16) # 1/8
58 x_4 = self.ffm1(features[1], x_8) # 1/4
59 x_2 = self.ffm0(features[0], x_4) # 1/2
60 #-----------------------------------------
61 x = self.outconv(x_2) # original size
62 return x
63
64class DepthNet(nn.Module):
65 __factory = {

Callers

nothing calls this directly

Calls 1

upsampleMethod · 0.80

Tested by

no test coverage detected