Skip to content

Add channel_axis to random_flip_up_down - #118

Open
v1shay wants to merge 2 commits into
google-deepmind:masterfrom
v1shay:agent/random-flip-up-down-channel-axis
Open

Add channel_axis to random_flip_up_down#118
v1shay wants to merge 2 commits into
google-deepmind:masterfrom
v1shay:agent/random-flip-up-down-channel-axis

Conversation

@v1shay

@v1shay v1shay commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add the documented channel_axis argument to random_flip_up_down
  • forward the axis to flip_up_down
  • add a regression test for channel-first (CHW) images

Motivation

The deterministic flip_up_down API already supports channel-first images through channel_axis, but its random wrapper did not expose that argument. This keeps the random and deterministic augmentation APIs consistent and resolves the follow-up requested in issue #117.

Validation

  • python3.12 -m py_compile dm_pix/_src/augment.py dm_pix/_src/augment_test.py
  • git diff --check

@pabloduque0 pabloduque0 self-assigned this Aug 13, 2026
@pabloduque0 pabloduque0 added the enhancement New feature or request label Aug 13, 2026
@pabloduque0

Copy link
Copy Markdown
Collaborator

@v1shay if you can resolve and re-upload I will approve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants