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

Method __call__

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

Source from the content-addressed store, hash-verified

545 with probability p for transforms1 and (1 - p) for transforms2
546 """
547 def __call__(self, imgs, targets):
548 if random.random() < self.p:
549 return self.transforms1(imgs, targets)
550 return self.transforms2(imgs, targets)
551
552
553class ToTensor(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected