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

Method __init__

PATH/core/data/transforms/pedattr_transforms.py:46–50  ·  view source on GitHub ↗
(self, prob, n_holes, length)

Source from the content-addressed store, hash-verified

44 length (int): The length (in pixels) of each square patch.
45 """
46 def __init__(self, prob, n_holes, length):
47 print(n_holes, length)
48 self.n_holes = n_holes
49 self.length = length
50 self.p = prob
51
52 def __call__(self, img):
53 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected