| 40 | |
| 41 | |
| 42 | class StaticCenterCrop(object): |
| 43 | def __init__(self, image_size, crop_size): |
| 44 | self.th, self.tw = crop_size |
| 45 | self.h, self.w = image_size |
| 46 | |
| 47 | def __call__(self, img): |
| 48 | return img[(self.h - self.th) // 2:(self.h + self.th) // 2, (self.w - self.tw) // 2:(self.w + self.tw) // 2, :] |
| 49 | |
| 50 | |
| 51 | class MpiSintel(object): |
no outgoing calls
no test coverage detected