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

Function f

PATH/core/data/transforms/pedattr_transforms.py:220–223  ·  view source on GitHub ↗
(img1, v)

Source from the content-addressed store, hash-verified

218
219def SamplePairing(imgs): # [0, 0.4]
220 def f(img1, v):
221 i = np.random.choice(len(imgs))
222 img2 = PIL.Image.fromarray(imgs[i])
223 return PIL.Image.blend(img1, img2, v)
224
225 return f
226

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected