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

Method __init__

PATH/core/augmentation.py:53–64  ·  view source on GitHub ↗
(self, crop_size, final_size, crop_center_x_offset, \
                crop_center_y_offset, scale_aug, trans_aug, flip=-1, \
                mask_aug=0, half=0)

Source from the content-addressed store, hash-verified

51
52class FaceAugmentationCV2(object):
53 def __init__(self, crop_size, final_size, crop_center_x_offset, \
54 crop_center_y_offset, scale_aug, trans_aug, flip=-1, \
55 mask_aug=0, half=0):
56 self.crop_size = crop_size
57 self.final_size = final_size
58 self.crop_center_y_offset = crop_center_y_offset
59 self.crop_center_x_offset = crop_center_x_offset
60 self.scale_aug = scale_aug
61 self.trans_aug = trans_aug
62 self.flip = flip
63 self.mask_aug = mask_aug
64 self.half = half
65
66 def __call__(self, img):
67 ## transform

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected