| 50 | |
| 51 | |
| 52 | class RandomVerticalFlip(object): |
| 53 | def __call__(self, img): |
| 54 | if random.random() < 0.5: |
| 55 | return img.transpose(Image.FLIP_TOP_BOTTOM) |
| 56 | return img |
| 57 | |
| 58 | |
| 59 | class DeNormalize(object): |
nothing calls this directly
no outgoing calls
no test coverage detected