I can confirm the error. This is by taking my own new copy of Jeremy’s notebook.
It seems the issue is only with version 2.7.11, adding the line two lines here to cell 2…
if iskaggle:
!pip install -Uqq fastai duckduckgo_search
import fastai
fastai.__version__
2.7.11
It works using the following in cell 2…
if iskaggle:
!pip install -Uqq fastai==2.7.10 duckduckgo_search
import fastai
fastai.__version__
2.7.10
If it doesn’t say 2.7.10, try a restart or factory reset.
I’m not much practiced at debugging more deeply on kaggle. @jeremy, you may want to have a look.
hey @gizzard I believe the issue is coming from line 2 due to PILImage not having a read attribute, after searching the forums for a bit, I wasn’t able to conclude on how to get the read attribute imported.
My workaround was to include the file path directly like so:
I’ll get back to you if I can get the read attribute to work
edit:
After searching the forum some more I found that the newest fastAI version doesn’t support PIL image being passed into the learn.predict() method anymore.
I thank you all for the assistance, as I was in need of this same bit of help.
Should I/we seek to alert JHoward (or some Fast AI person/entity) to this difficulty? It’s very early in the course, and it seems this could easily “derail” many people just getting their start.
Is there a step by step procedure to install RISE on the Kaggle notebook? I have not been able to get the command palette button or the cell toolbar. I used:
pip install RISE as explained in RISE — RISE 5.7.1
Hi, I really hope this is the right place to ask my question.
I’m getting an error when I run the first example of the fastbook (the one that trains a model, shows an upload button, then determines whether my image is of a cat vs a dog)
I was able to successfully train the model
I was able to successfully load my image (tested that the problem was not with the upload button by showing a small thumbnail of the image I uploaded via to_thumb())
everytime a run
is_cat,_,probs = learn.predict(img)
The predict function throws an error
The error starts with learn.predict and ends with:
Hi, I’m new to the course, and I’m trying just to train the cats&dogs model, using Google Colab it takes years (more than 1 hour and still running) to run the “fine_tune” function.