(self, img)
| 300 | self.augment_list = augment_list() |
| 301 | |
| 302 | def __call__(self, img): |
| 303 | ops = random.choices(self.augment_list, k=self.n) |
| 304 | |
| 305 | for op, minval, maxval in ops: |
| 306 | val = (float(self.m) / 30) * float(maxval - minval) + minval |
| 307 | img = op(img, val) |
| 308 | |
| 309 | return img |
| 310 | |
| 311 | |
| 312 | class PedAttrRandomAugmentation(object): |
nothing calls this directly
no outgoing calls
no test coverage detected