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

Method __call__

tutorials/motr/transforms.py:616–625  ·  view source on GitHub ↗
(self, imgs, targets=None)

Source from the content-addressed store, hash-verified

614
615class MotNormalize(Normalize):
616 def __call__(self, imgs, targets=None):
617 ret_imgs = []
618 ret_targets = []
619 for i in range(len(imgs)):
620 img_i = imgs[i]
621 targets_i = targets[i] if targets is not None else None
622 img_i, targets_i = super().__call__(img_i, targets_i)
623 ret_imgs.append(img_i)
624 ret_targets.append(targets_i)
625 return ret_imgs, ret_targets
626
627
628class Compose(object):

Callers

nothing calls this directly

Calls 1

__call__Method · 0.45

Tested by

no test coverage detected