course22 icon indicating copy to clipboard operation
course22 copied to clipboard

2.7.11 breaks lesson 1 notebook

Open jbellis opened this issue 2 years ago • 3 comments
trafficstars

is_bird,_,probs = learn.predict(PILImage.create('bird.jpg'))

errors out with (ultimately) AttributeError: read.

Notebook with full stacktrace here: https://www.kaggle.com/code/danwashceros/is-it-a-bird-creating-a-model-from-your-own-data

jbellis avatar Feb 17 '23 15:02 jbellis

The fix is to change it to this: is_bird,_,probs = learn.predict('bird.jpg')

Hope this helps someone! awesome course so far, thanks @jph00

mrpaulstone avatar Feb 17 '23 22:02 mrpaulstone

I can confirm that @mrpaulstone 's code above fixes the issue, thank you!

jaabberwocky avatar Feb 18 '23 16:02 jaabberwocky

same here

nopcall avatar Feb 19 '23 07:02 nopcall