fastai / fastbook

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

Chapter 1. chapter1_cat_example.jpg is not present in library #572

Open Agaspher20 opened 1 year ago

Agaspher20 commented 1 year ago

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'.

  1. 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.
  2. "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"]
  1. 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