fastbook icon indicating copy to clipboard operation
fastbook copied to clipboard

learn.predict throws error when passed PIL image

Open yousifmansour opened this issue 2 years ago • 2 comments

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

yousifmansour avatar Mar 05 '23 17:03 yousifmansour

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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

ofields avatar Mar 16 '23 03:03 ofields