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

Method __call__

augment.py:57–61  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

55 self.p = p
56
57 def __call__(self, img):
58 if random.random() < self.p:
59 return ImageOps.solarize(img)
60 else:
61 return img
62
63class gray_scale(object):
64 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected