mcordts / cityscapesScripts

README and scripts for the Cityscapes Dataset
MIT License
2.19k stars 608 forks source link

pillow can’t be detected by the scripts since pillow 7.0.0 #101

Closed Dirtybluer closed 4 years ago

Dirtybluer commented 4 years ago

It seems that “PILLOW_VERSION” has been removed from “PIL” since pillow 7.0.0. Therefore, scripts like below will raise an error even if pillow has been installed.

try:
    from PIL import PILLOW_VERSION
except:
    print("Please install the module 'Pillow' for image processing, e.g.")
    print("pip install pillow")
    sys.exit(-1)

Though this can be addressed by installing an older pillow, e.g. pillow 6.2.1, It would be great if you can revise the scripts to make them compatible with new pillow versions.

Dirtybluer commented 4 years ago

Fixed by https://github.com/mcordts/cityscapesScripts/pull/104https://github.com/mcordts/cityscapesScripts/pull/104