| 31 | return mixed_images |
| 32 | |
| 33 | class Compose: |
| 34 | def __init__(self, transforms): |
| 35 | self.transforms = transforms |
| 36 | |
| 37 | def __call__(self, image, target): |
| 38 | for t in self.transforms: |
| 39 | image, target = t(image, target) |
| 40 | return image, target |
| 41 | |
| 42 | |
| 43 | class RandomHorizontalFlip: |