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

import error in augmentors.py #121

Open
anbilly19 opened this issue Aug 30, 2019 · 5 comments
Open

import error in augmentors.py #121

anbilly19 opened this issue Aug 30, 2019 · 5 comments

Comments

@anbilly19
Copy link

Traceback (most recent call last): File "train_pose1.py", line 17, in <module> from training.dataset import get_dataflow, batch_dataflow File "../training/dataset.py", line 11, in <module> from training.augmentors import ScaleAug, RotateAug, CropAug, FlipAug, \ File "../training/augmentors.py", line 6, in <module> from tensorpack.dataflow.imgaug.geometry import WarpAffineTransform,TransformAugmentorBase ImportError: cannot import name TransformAugmentorBase

@michalfaber
Copy link
Owner

Yes, the code is not compatible with the latest version of tensorpack. Try to use tensorpack==0.9.0.1
Thanks for the info.

@anbilly19
Copy link
Author

Thanks for the exact stable version i was unable to find the correct one. But now i'm seeing a ZeroDivision error in ScaleAug line 226. while the code proceeds to the first epoch it shows the same error and gets stuck midway. I'm not sure of the cause tho.
Should i start a new issue for this lemme know

@michalfaber
Copy link
Owner

Are you using the annotation file person_keypoints_train2017.json ? If not, there should be bbox element in your json file, something like "bbox": [x, y, w, h]

@anbilly19
Copy link
Author

anbilly19 commented Sep 10, 2019 via email

@Deeptanshu-sankhwar
Copy link

@anbilly19 try unzipping wget http://images.cocodataset.org/annotations/annotations_trainval2017.zip in folder annotations.
Worked for me !!

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

3 participants