MCPcopy Index your code
hub / github.com/FoundationVision/ByteTrack / forward

Method forward

tutorials/motr/motr_det.py:294–300  ·  view source on GitHub ↗
(self, outputs, input_data: dict)

Source from the content-addressed store, hash-verified

292 return track_instances
293
294 def forward(self, outputs, input_data: dict):
295 # losses of each frame are calculated during the model's forwarding and are outputted by the model as outputs['losses_dict].
296 losses = outputs.pop("losses_dict")
297 num_samples = self.get_num_boxes(self.num_samples)
298 for loss_name, loss in losses.items():
299 losses[loss_name] /= num_samples
300 return losses
301
302
303class RuntimeTrackerBase(object):

Callers

nothing calls this directly

Calls 1

get_num_boxesMethod · 0.95

Tested by

no test coverage detected