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

Method __call__

tutorials/motr/transforms.py:409–413  ·  view source on GitHub ↗
(self, img: PIL.Image.Image, target: dict)

Source from the content-addressed store, hash-verified

407 self.max_size = max_size
408
409 def __call__(self, img: PIL.Image.Image, target: dict):
410 w = random.randint(self.min_size, min(img.width, self.max_size))
411 h = random.randint(self.min_size, min(img.height, self.max_size))
412 region = T.RandomCrop.get_params(img, [h, w])
413 return crop(img, target, region)
414
415
416class MotRandomSizeCrop(RandomSizeCrop):

Callers

nothing calls this directly

Calls 1

cropFunction · 0.85

Tested by

no test coverage detected