Skip to content

PadIfNeeded augmentation is poorly named. It crops as well as pads. #1274

@bw4sz

Description

@bw4sz
Image

If you have an image that is larger than the padding size, it crops the image to that size. The real underlying issue is https://kornia.readthedocs.io/en/latest/augmentation.module.html#kornia.augmentation.PadTo. I think we can write our own augmentation? I think this can be marked good first issue unless @jveitchmichaelis thinks there is some complexity here.

Desired functionality

An augmentation that pads the image to a given size if it smaller than that size. If it is larger, do nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions