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

Method __init__

PATH/core/augmentation.py:129–145  ·  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='random')

Source from the content-addressed store, hash-verified

127
128class FaceAugmentationCV2Mask(object):
129 def __init__(self, crop_size, final_size, crop_center_y_offset, scale_aug, trans_aug, mask_spec,
130 total_ratio,sunglass,sunglass_ratio,mask,mask_ratio,hat,hat_ratio,flip=-1,mask_type='random'):
131 self.crop_size = crop_size
132 self.final_size = final_size
133 self.crop_center_y_offset = crop_center_y_offset
134 self.scale_aug = scale_aug
135 self.trans_aug = trans_aug
136 self.flip = flip
137 #####add mask_spec by wl
138 self.mask_spec = mask_spec
139 self.total_ratio = total_ratio
140 self.sunglass = sunglass
141 self.sunglass_ratio = sunglass_ratio
142 self.mask = mask
143 self.mask_ratio = mask_ratio
144 self.hat = hat
145 self.hat_ratio = hat_ratio
146
147 def __call__(self, img):
148 ## transform

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected