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

Function SamplePairing

PATH/core/data/transforms/pedattr_transforms.py:219–225  ·  view source on GitHub ↗
(imgs)

Source from the content-addressed store, hash-verified

217
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
227
228def Identity(img, v):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected