fastai / fastbook

The fastai book, published as Jupyter Notebooks
Other
22.07k stars 8.5k forks source link

learn.predict throws error when passed PIL image #567

Open yousifmansour opened 1 year ago

yousifmansour commented 1 year ago

This fixes the issue reported here which is blocking running a cell in chapter 1 of the book. Below is a screenshot of the cell in question.

This seems to have started happening with fastai 2.7.11, and since fastbook installs fast ai >=2.6, its not easy for a beginner (or non python expert like myself) to figure this out.

Enjoying the book otherwise, thank you everyone involved.

Screenshot_20230305_123236

Screenshot_20230305_123257

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

ofields commented 1 year ago

Yep, this tripped me up as well. The simple fix in your PR worked for me - thanks!