MCPcopy Create free account
hub / github.com/HYUNJS/SGT / forward

Method forward

projects/CenterNet/centernet/deform_conv.py:24–29  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

22 nn.init.constant_(self.conv_offset_mask.bias, 0)
23
24 def forward(self, input):
25 offset_mask = self.conv_offset_mask(input)
26 offset_x, offset_y, mask = torch.chunk(offset_mask, 3, dim=1)
27 offset = torch.cat((offset_x, offset_y), dim=1)
28 mask = mask.sigmoid()
29 return super(DLADeformConv, self).forward(input, offset, mask)
30
31
32class DeformConvWithOff(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected