MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / __init__

Method __init__

PATH/core/augmentation.py:252–268  ·  view source on GitHub ↗
(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')

Source from the content-addressed store, hash-verified

250
251class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected