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

Method __call__

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

Source from the content-addressed store, hash-verified

316
317class MotRandomCrop(RandomCrop):
318 def __call__(self, imgs: list, targets: list):
319 ret_imgs = []
320 ret_targets = []
321 region = T.RandomCrop.get_params(imgs[0], self.size)
322 for img_i, targets_i in zip(imgs, targets):
323 img_i, targets_i = crop(img_i, targets_i, region)
324 ret_imgs.append(img_i)
325 ret_targets.append(targets_i)
326 return ret_imgs, ret_targets
327
328class FixedMotRandomCrop(object):
329 def __init__(self, min_size: int, max_size: int):

Callers

nothing calls this directly

Calls 1

cropFunction · 0.85

Tested by

no test coverage detected