Context: Internal tests are failing on test_transforms.py::TestAccImage::test_accimage_crop with the following error:
AttributeError: 'accimage.Image' object has no attribute 'getbands'
It points to the following function:
def get_dimensions(img: Any) -> List[int]:
if _is_pil_image(img):
> channels = len(img.getbands())
E AttributeError: 'accimage.Image' object has no attribute 'getbands'
from functional_pil.py which was added in this #5487.
cc @pmeier