Skip to content

Update transform.py, fix a bug in HorizontalFlip. #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TracelessLe
Copy link

fix a bug in HorizontalFlip which deals with the label of right_* and left_*. Please note that the "lb" in "lb == 2" is a PIL object, so if you use "flip_lb[lb == 2] = 3" which changes nothing.

fix a bug in HorizontalFlip.
@gauss-clb
Copy link

Don't need to swap l_brow and r_brow, just remove these lines.

            flip_lb[lb == 2] = 3
            flip_lb[lb == 3] = 2
            flip_lb[lb == 4] = 5
            flip_lb[lb == 5] = 4
            flip_lb[lb == 7] = 8
            flip_lb[lb == 8] = 7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants