MCPcopy Create free account
hub / github.com/lingeringlight/START / __init__

Method __init__

augment.py:83–85  ·  view source on GitHub ↗
(self, p=0.2,activate_pred=False)

Source from the content-addressed store, hash-verified

81 Apply Solarization to the PIL image.
82 """
83 def __init__(self, p=0.2,activate_pred=False):
84 self.p = p
85 self.transf = transforms.RandomHorizontalFlip(p=1.0)
86
87 def __call__(self, img):
88 if random.random() < self.p:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected