(kwargs)
| 40 | |
| 41 | |
| 42 | def _interpolation(kwargs): |
| 43 | interpolation = kwargs.pop('resample', Image.BILINEAR) |
| 44 | if isinstance(interpolation, (list, tuple)): |
| 45 | return random.choice(interpolation) |
| 46 | else: |
| 47 | return interpolation |
| 48 | |
| 49 | |
| 50 | def _check_args_tf(kwargs): |