Skip to content

Add channel_axis support to random_flip_up_down #117

Description

@v1shay

Proposal

random_flip_up_down currently accepts only key, image, and probability, while the deterministic flip_up_down function accepts channel_axis for both HWC and CHW images.

Could the random wrapper expose the same keyword argument and forward it to flip_up_down, as was done for random_flip_left_right? This would keep the random and deterministic augmentation APIs consistent and make channel-first pipelines easier to use.

A small regression test covering a CHW image would also help prevent the two APIs from drifting again.

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