MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / __init__

Method __init__

utils.py:61–62  ·  view source on GitHub ↗
(self, p)

Source from the content-addressed store, hash-verified

59 Apply Solarization to the PIL image.
60 """
61 def __init__(self, p):
62 self.p = p
63
64 def __call__(self, img):
65 if random.random() < self.p:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected