(self, x)
| 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 | |
| 691 | def detection_losses( |
nothing calls this directly
no outgoing calls
no test coverage detected