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

Method __call__

tutorials/motr/transforms.py:492–500  ·  view source on GitHub ↗
(self, imgs, targets)

Source from the content-addressed store, hash-verified

490
491class MotRandomResize(RandomResize):
492 def __call__(self, imgs, targets):
493 size = random.choice(self.sizes)
494 ret_imgs = []
495 ret_targets = []
496 for img_i, targets_i in zip(imgs, targets):
497 img_i, targets_i = resize(img_i, targets_i, size, self.max_size)
498 ret_imgs.append(img_i)
499 ret_targets.append(targets_i)
500 return ret_imgs, ret_targets
501
502
503class RandomPad(object):

Callers

nothing calls this directly

Calls 1

resizeFunction · 0.85

Tested by

no test coverage detected