There are three problems with image we trying to get by path 'images/chapter1_cat_example.jpg'.
This path doesn't exist. Correct path to images should be path/'chapter1_cat_example.jpg'. Where path is a variable we created on one of the previous steps and it leads to images folder of library.
"chapter1_cat_example.jpg" file doesn't exist in images. It could be easily checked by the following code:
import os
[d for d in os.listdir(path) if d == "chapter1_cat_example.jpg"]
Classifier learned on this data so it literally knows the correct answer for the data from images folder
Third point probably shouldn't be fixed here but first two points definitely a subject to fix
I'm running chapter 1 jupyter notebook on Google Colab. https://colab.research.google.com/github/fastai/fastbook/blob/master/01_intro.ipynb#scrollTo=v6on3VNgOPMr
There are three problems with image we trying to get by path 'images/chapter1_cat_example.jpg'.
path/'chapter1_cat_example.jpg'
. Wherepath
is a variable we created on one of the previous steps and it leads toimages
folder of library.Third point probably shouldn't be fixed here but first two points definitely a subject to fix