Skip to content

Bug in clip resizing #106

@aderylo

Description

@aderylo

There seems to be a bug in the Resizing code:

size = size[1], size[0]

the swap is unnecessary and it should be size = size[0], size[1] given that docstring of Resize class states:

    """Resizes a list of (H x W x C) numpy.ndarray to the final size
    The larger the original image is, the more times it takes to
    interpolate
    Args:
    interpolation (str): Can be one of 'nearest', 'bilinear'
    defaults to nearest
    size (tuple): (width, height)
    """

and PILs Image.resize expects also size to be (width, height) not (height, width) as it is now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions