MCPcopy Create free account
hub / github.com/Kitware/COAT / forward

Method forward

models/coat.py:682–688  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

680 init.constant_(self.bbox_pred.bias, 0)
681
682 def forward(self, x):
683 if x.ndimension() == 4:
684 if list(x.shape[2:]) != [1, 1]:
685 x = F.adaptive_avg_pool2d(x, output_size=1)
686 x = x.flatten(start_dim=1)
687 bbox_deltas = self.bbox_pred(x)
688 return bbox_deltas
689
690
691def detection_losses(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected