(kwargs)
| 29 | |
| 30 | |
| 31 | def _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 | |
| 39 | def _check_args_tf(kwargs): |