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

Function _interpolation

pycontrast/datasets/RandAugment.py:31–36  ·  view source on GitHub ↗
(kwargs)

Source from the content-addressed store, hash-verified

29
30
31def _interpolation(kwargs):
32 interpolation = kwargs.pop('resample', Image.BILINEAR)
33 if isinstance(interpolation, (list, tuple)):
34 return random.choice(interpolation)
35 else:
36 return interpolation
37
38
39def _check_args_tf(kwargs):

Callers 1

_check_args_tfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected