(self, inpt: Any, params: Dict[str, Any])
| 72 | return dict(size=size) |
| 73 | |
| 74 | def transform(self, inpt: Any, params: Dict[str, Any]) -> Any: |
| 75 | if isinstance(inpt, Image.Image): |
| 76 | inpt = inpt.convert('RGB') |
| 77 | |
| 78 | size = params['size'] |
| 79 | |
| 80 | return transforms.functional.resize(inpt, size=size, interpolation=transforms.InterpolationMode.BICUBIC) |
| 81 | |
| 82 | |
| 83 | class PadToSquare(TV2Compat): |
nothing calls this directly
no outgoing calls
no test coverage detected