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

Method __init__

tutorials/motr/transforms.py:531–534  ·  view source on GitHub ↗
(self, transforms1, transforms2, p=0.5)

Source from the content-addressed store, hash-verified

529 with probability p for transforms1 and (1 - p) for transforms2
530 """
531 def __init__(self, transforms1, transforms2, p=0.5):
532 self.transforms1 = transforms1
533 self.transforms2 = transforms2
534 self.p = p
535
536 def __call__(self, img, target):
537 if random.random() < self.p:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected