## Add fastbook in front of original path
img = PILImage.create('fastbook/images/chapter1_cat_example.jpg')
img.to_thumb(192)
Is this what we are supposed to be doing ourselves? (I ask because I assumed that the fastai/fastbook would already be installed on the colab instance.)
@muellerzr what install directions are you referring to? The only directions I know are here and they don’t seem to mention anything related to the repo.
It might be worth doing %pwd and %cd /content/fastbook if necessary after cloning. I think the connection to Gdrive is setting %pwd to /content (your GDrive)
So I am on my first lesson but this is what I tried in Colab -
Commented out
uploader = SimpleNamespace(data = [’…/images/chapter1_cat_example.jpg’])
I think this is for taking a sample image out of the same directory, not sure, not very familiar with this directory repository stuff. But I did upload one image in the cell just above that from the clickable button. The the cell which is creating a problem will run.
I think the sample one is for the hard copy of the book.
(Disclaimer - Might be too late to the party (discussion))
I am using Google Collab.
As a noob (to both Python and fastai), I faced the same <No such file or directory: ‘images/chapter1_cat_example.jpg’> and using ‘…/images/chapter1_cat_example.jpg’ did not solve the problem.
uploader = widgets.FileUpload()
uploader
works fine.
In github repo, chapter1_cat_example.jpg is available only under fastbook/images/ but not under fastbook/clean/images/ (empty folder). In lesson 1, Jeremy suggests to use notebooks under clean to learn/practice.
Perhaps, this is the cause for some people to face issue.
Hi Fastai community,
I’m running the course on Colab and I get the same issue.
I did every tweak mentioned in this thread but nothing work.
any thoughts please?
thank you all.
This worked for me as i cloned the full repo.
As this isn’t an issue of the setup, anyone else who can’t use @shankarr solution can just clone that image into a “images” folder.
Hi, everyone
I guess ‘images/chapter1_cat_example.jpg’ is the address for the picture we want to test
So I replace it with the address of the picture I upload before and it work