imgaug
imgaug copied to clipboard
ImportError: No module named 'imgaug.augmentables'; 'imgaug' is not a package
I am run the demo with boundingbox, but get the error, How can I solve the problem?
Are you sure you are on the most recent version? Maybe it is outdated.
pip install --upgrade git+https://github.com/aleju/imgaug.git
@aleju I am on the most recent version(0.3.0),but it still not work.
What stacktrace do you get?
Do you have a file or folder in your project that is called imgaug
and might confuse import
?
@aleju thank you ,the problem has been solved.
You need use python3 instead of python2.
You might also face this error if you also have albumentations
library installed, because of the following old imgaug
dependency version they have locked:
https://github.com/albumentations-team/albumentations/blob/eb4c16330e7bb7a5797f4e26799c892c864e7d27/setup.py#L8
@xuweidongkobe Could you share with us how you solved the problem? Facing the same error.
when you test the code, do not use the name imgaug.py