(self, img)
| 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, _): |
nothing calls this directly
no outgoing calls
no test coverage detected