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

Method __call__

tutorials/motr/transforms.py:507–510  ·  view source on GitHub ↗
(self, img, target)

Source from the content-addressed store, hash-verified

505 self.max_pad = max_pad
506
507 def __call__(self, img, target):
508 pad_x = random.randint(0, self.max_pad)
509 pad_y = random.randint(0, self.max_pad)
510 return pad(img, target, (pad_x, pad_y))
511
512
513class MotRandomPad(RandomPad):

Callers

nothing calls this directly

Calls 1

padFunction · 0.85

Tested by

no test coverage detected