MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / _set_aux_loss

Method _set_aux_loss

tutorials/motr/motr_det.py:480–485  ·  view source on GitHub ↗
(self, outputs_class, outputs_coord)

Source from the content-addressed store, hash-verified

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)

Callers 1

_forward_single_imageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected