MCPcopy Create free account
hub / github.com/ZhengPeng7/BiRefNet / forward

Method forward

models/modules/decoder_blocks.py:57–66  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

55 self.conv_resi = nn.Conv2d(in_channels, out_channels, 1, 1, 0)
56
57 def forward(self, x):
58 _x = self.conv_resi(x)
59 x = self.conv_in(x)
60 x = self.bn_in(x)
61 x = self.relu_in(x)
62 if hasattr(self, 'dec_att'):
63 x = self.dec_att(x)
64 x = self.conv_out(x)
65 x = self.bn_out(x)
66 return x + _x
67
68
69class HierarAttDecBlk(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected