Open azmathmoosa opened 5 years ago
Have the same problem
Try pip uninstall imgaug && pip install git+https://github.com/aleju/imgaug.git
and make sure that there are no errors.
Then run
import numpy as np
import imgaug as ia
segmap = ia.SegmentationMapOnImage(np.zeros((3, 3, 1), dtype=np.int32), shape=(3, 3, 3), nb_classes=1+5)
That code should then run -- at least it just worked for me with the latest version from github.
Try
pip uninstall imgaug && pip install git+https://github.com/aleju/imgaug.git
and make sure that there are no errors. Then runimport numpy as np import imgaug as ia segmap = ia.SegmentationMapOnImage(np.zeros((3, 3, 1), dtype=np.int32), shape=(3, 3, 3), nb_classes=1+5)
That code should then run -- at least it just worked for me with the latest version from github.
All work correctly, if i install from source, but when i install by pip - z i get this error.
The version on pypi is a bit outdated and doesn't contain segmentation maps yet.
I had this issue too, but simple reinstalling with pip helped. Looks like the version on pypi isn't outdated anymore.
This problem I think is because of change of imgaug 'segmap.py' code. The SegmentationMapOnImage changes to SegmentationMapsOnImage. Only adds the 's' letter to 'Map'.
SegmentationMapOnImage class without 's' don't exists.
I tried to run this code given in the documentation,
It fails at the last line with
I tried installing using pip and pip+git but both versions are 0.2.6 and have this issue.
Any suggestions?