MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / shear_y

Function shear_y

pycontrast/datasets/RandAugment.py:50–52  ·  view source on GitHub ↗
(img, factor, **kwargs)

Source from the content-addressed store, hash-verified

48
49
50def shear_y(img, factor, **kwargs):
51 _check_args_tf(kwargs)
52 return img.transform(img.size, Image.AFFINE, (1, 0, 0, factor, 1, 0), **kwargs)
53
54
55def translate_x_rel(img, pct, **kwargs):

Callers

nothing calls this directly

Calls 1

_check_args_tfFunction · 0.85

Tested by

no test coverage detected