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

Is there a bug in imgaug #11

Closed
lsy643 opened this issue Aug 3, 2016 · 1 comment
Closed

Is there a bug in imgaug #11

lsy643 opened this issue Aug 3, 2016 · 1 comment

Comments

@lsy643
Copy link

lsy643 commented Aug 3, 2016

Hi, I have been recently using your great tensorpack, but I think the imgaug part may seem exists some bug.
The code below just flip a dataflow, and the result is rather confusing. Perhaps you can try and see the result?

`
%matplotlib inline
import matplotlib.pyplot as plt
from tensorpack import *
from tensorpack.tfutils.symbolic_functions import *
from tensorpack.tfutils.summary import *

cifar10 = dataset.Cifar10('train', shuffle=False)
cifar10.reset_state()
for img_label in cifar10.get_data():
plt.figure()
plt.imshow(img_label[0])
break

flip_cifar10 = AugmentImageComponent(cifar10, [imgaug.Flip(horiz=True, prob=1.0),])
flip_cifar10.reset_state()
for img_label in flip_cifar10.get_data():
plt.figure()
plt.imshow(img_label[0])
break
`

@lsy643 lsy643 closed this as completed Aug 4, 2016
@ppwwyyxx
Copy link
Collaborator

ppwwyyxx commented Aug 4, 2016

haven't had a chance to look. is there still an issue?

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