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

Method __init__

tutorials/motr/transforms.py:405–407  ·  view source on GitHub ↗
(self, min_size: int, max_size: int)

Source from the content-addressed store, hash-verified

403
404class RandomSizeCrop(object):
405 def __init__(self, min_size: int, max_size: int):
406 self.min_size = min_size
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))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected