Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FoundationVision/ByteTrack
/ __init__
Method
__init__
tutorials/motr/transforms.py:458–459 ·
view source on GitHub ↗
(self, p=0.5)
Source
from the content-addressed store, hash-verified
456
457
class
RandomHorizontalFlip(object):
458
def
__init__(self, p=0.5):
459
self.p = p
460
461
def
__call__(self, img, target):
462
if
random.random() < self.p:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected