(self, outputs_class, outputs_coord)
| 478 | |
| 479 | @torch.jit.unused |
| 480 | def _set_aux_loss(self, outputs_class, outputs_coord): |
| 481 | # this is a workaround to make torchscript happy, as torchscript |
| 482 | # doesn't support dictionary with non-homogeneous values, such |
| 483 | # as a dict having both a Tensor and a list. |
| 484 | return [{'pred_logits': a, 'pred_boxes': b, } |
| 485 | for a, b in zip(outputs_class[:-1], outputs_coord[:-1])] |
| 486 | |
| 487 | def _forward_single_image(self, samples, track_instances: Instances): |
| 488 | features, pos = self.backbone(samples) |
no outgoing calls
no test coverage detected