(self, crop_size, final_size, crop_center_y_offset, scale_aug, trans_aug, mask_spec,
total_ratio,sunglass,sunglass_ratio,mask,mask_ratio,hat,hat_ratio,flip=-1,mask_type='template')
| 250 | |
| 251 | class FaceAugmentationCV2Template(object): |
| 252 | def __init__(self, crop_size, final_size, crop_center_y_offset, scale_aug, trans_aug, mask_spec, |
| 253 | total_ratio,sunglass,sunglass_ratio,mask,mask_ratio,hat,hat_ratio,flip=-1,mask_type='template'): |
| 254 | self.crop_size = crop_size |
| 255 | self.final_size = final_size |
| 256 | self.crop_center_y_offset = crop_center_y_offset |
| 257 | self.scale_aug = scale_aug |
| 258 | self.trans_aug = trans_aug |
| 259 | self.flip = flip |
| 260 | #####add mask_spec by wl |
| 261 | self.mask_spec = mask_spec |
| 262 | self.total_ratio = total_ratio |
| 263 | self.sunglass = sunglass |
| 264 | self.sunglass_ratio = sunglass_ratio |
| 265 | self.mask = mask |
| 266 | self.mask_ratio = mask_ratio |
| 267 | self.hat = hat |
| 268 | self.hat_ratio = hat_ratio |
| 269 | |
| 270 | def __call__(self, img): |
| 271 | is_sunglass = False |
nothing calls this directly
no outgoing calls
no test coverage detected