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

Method __init__

augment.py:67–69  ·  view source on GitHub ↗
(self, p=0.2)

Source from the content-addressed store, hash-verified

65 Apply Solarization to the PIL image.
66 """
67 def __init__(self, p=0.2):
68 self.p = p
69 self.transf = transforms.Grayscale(3)
70
71 def __call__(self, img):
72 if random.random() < self.p:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected