Skip to content
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

some image is loaded upside down #4

Open
zlw21gxy opened this issue Apr 29, 2019 · 2 comments
Open

some image is loaded upside down #4

zlw21gxy opened this issue Apr 29, 2019 · 2 comments

Comments

@zlw21gxy
Copy link

image

@zlw21gxy
Copy link
Author

I wonder why we need do it?Flip image is some kind like data argument?
if self.set_name=='train' and np.random.random(1)>0.5: image1 = image1.transpose(PIL.Image.FLIP_TOP_BOTTOM) image2 = image2.transpose(PIL.Image.FLIP_TOP_BOTTOM) if self.set_name=='train' and np.random.random(1)>0.5: image1 = image1.transpose(PIL.Image.FLIP_LEFT_RIGHT) image2 = image2.transpose(PIL.Image.FLIP_LEFT_RIGHT)

@aimerykong
Copy link
Owner

aimerykong commented Apr 29, 2019 via email

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

No branches or pull requests

2 participants