(self, crop_size, final_size, crop_center_y_offset, scale_aug, trans_aug)
| 11 | |
| 12 | class FaceAugmentation(object): |
| 13 | def __init__(self, crop_size, final_size, crop_center_y_offset, scale_aug, trans_aug): |
| 14 | self.crop_size = crop_size |
| 15 | self.final_size = final_size |
| 16 | self.crop_center_y_offset = crop_center_y_offset |
| 17 | self.scale_aug = scale_aug |
| 18 | self.trans_aug = trans_aug |
| 19 | self.flip = flip |
| 20 | def __call__(self, img): |
| 21 | ## transform |
| 22 | scale_diff_h = (np.random.rand()*2-1)*self.scale_aug |
nothing calls this directly
no outgoing calls
no test coverage detected