Skip to content

accimage not installed in CI skipping a number of tests #5541

@prabhat00155

Description

@prabhat00155

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions