Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMNIST Example fails with AttributeError: 'NoneType' object has no attribute 'read' if pillow>7.0.0 #670
Comments
|
I followed again all the steps in the example and it works fine for me. |
|
@w4nderlust This issue is persistent on windows and linux( I tried Ubuntu ). The exact same files seem to work without a glitch on mac. I tried running the same for FashionMnist
|
|
Update:
|
|
That's funny @gilga98 , so you had no problems on OSX, but had problems on the other platforms? That's opposite me. I will try to start from scratch today. |
|
I followed the instructions again this time on a Debian box on GCE (9.12 (stretch)). This time I only installing Same exception. I did not do anything special to the directories. Not only do the csv and pngs look good, as I mentioned I put a breakpoint and checked the path that was being used in the file objects, and ran
|
|
The issue is with pillow verison
This fix from pillow concerning the PNGs is breaking it |
|
That's it -- I can confirm this works for me too. Many thanks @gilga98! |
|
mmm that's weird. |
Describe the bug
Trying to reproduce the MNIST demo.
To Reproduce
Steps to reproduce the behavior:
Follow instructions at: https://uber.github.io/ludwig/examples/#image-classification-mnist
I have a directory like so:
Please provide code, yaml definition file and a sample of data in order to entirely reproduce the issue.
Issues that are not reproducible will be ignored.
Expected behavior
I expect it to run the experiment.
Environment (please complete the following information):
Python 3.7.3ludwig==0.2.2.4Additional context
I put a breakpoint in the pil plugin and inspected the path it's using, which seems entirely valid. I think the permissions on all the dirs are valid...