Open JFAlexanderS opened 5 years ago
@fyu Can you help with this problem?
This seems to be webp
support problem. webp
needs to be installed before Pillow
is installed. For example, if you are on Mac, you can do brew install webp
before pip install Pillow
. A full installation guide is at https://pillow.readthedocs.io/en/3.0.x/installation.html. Make sure webp
is enabled.
@JFAlexanderS I got the same error as you. Did you solve this problem?
EDIT: Solved the problem by installing the latest version of Pillow (e.g. pip install pillow<7)
I downloaded data from the 20 LSUN object categories listed here: http://tigress-web.princeton.edu/~fy/lsun/public/release/ but I get the following error when I try to open the images:
OSError: cannot identify image file <_io.BytesIO object at 0x7f615045c3b8>
This surprised me because my code works just fine with the LSUN scene recognition dataset. For reference, here's the rest of the code:Is there any significant difference between scenes and objects that I'm not seeing?