MCPcopy Create free account
hub / github.com/Kitware/COAT / __init__

Method __init__

utils/transforms.py:44–45  ·  view source on GitHub ↗
(self, prob=0.5)

Source from the content-addressed store, hash-verified

42
43class RandomHorizontalFlip:
44 def __init__(self, prob=0.5):
45 self.prob = prob
46
47 def __call__(self, image, target):
48 if random.random() < self.prob:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected