fastbook icon indicating copy to clipboard operation
fastbook copied to clipboard

Chapter 1. chapter1_cat_example.jpg is not present in library

Open Agaspher20 opened this issue 2 years ago • 0 comments

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

Agaspher20 avatar Mar 30 '23 16:03 Agaspher20