MCPcopy Create free account
hub / github.com/geekcomputers/Python / __call__

Method __call__

ML/src/python/neuralforge/data/augmentation.py:28–33  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

26 ]
27
28 def __call__(self, img):
29 ops = random.choices(self.augment_list, k=self.n)
30 for op, minval, maxval in ops:
31 val = (float(self.m) / 30) * float(maxval - minval) + minval
32 img = op(img, val)
33 return img
34
35 @staticmethod
36 def auto_contrast(img, _):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected