Tensorpack update
rizasif opened this issue · comments
Hi,
I believe the tensorpack repository has been updated hence your repository needs update too.
I ran the code and the following error appeared:
Traceback (most recent call last):
File "cifar10-densenet.py", line 173, in <module>
config = get_config()
File "cifar10-densenet.py", line 142, in get_config
dataset_train = get_data('train')
File "cifar10-densenet.py", line 120, in get_data
imgaug.CenterPaste((40, 40)),
File "/home/turanshare/anaconda2/envs/tensorflow/lib/python3.6/site-packages/tensorpack/utils/develop.py", line 151, in __getattr__
return getattr(module, item)
AttributeError: module 'tensorpack.dataflow.imgaug' has no attribute 'CenterPaste'
Apart from CenterPaste
I think the following lines must be updated:
augmentors = [
imgaug.CenterPaste((40, 40)),
imgaug.RandomCrop((32, 32)),
imgaug.Flip(horiz=True),
#imgaug.Brightness(20),
#imgaug.Contrast((0.6,1.4)),
imgaug.MapImage(lambda x: x - pp_mean),
]
If you have already solved this please let me know. Otherwise I will be happy to generate a pull request with your help.
Thank you.
Hey, I guess the issue wasn't what I thought it was. Installing OpenCv did the trick and the above issue was solved.
I have, however, submitted a pull request which address this issue as well as another one here: #16
Thank you.
every time i am getting to this thread, so i'll just leave it here:
pip install opencv-python