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

Method __init__

tutorials/motr/transforms.py:481–484  ·  view source on GitHub ↗
(self, sizes, max_size=None)

Source from the content-addressed store, hash-verified

479
480class RandomResize(object):
481 def __init__(self, sizes, max_size=None):
482 assert isinstance(sizes, (list, tuple))
483 self.sizes = sizes
484 self.max_size = max_size
485
486 def __call__(self, img, target=None):
487 size = random.choice(self.sizes)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected