Lesson 1_intro uploader issues with Colab

Hi ,

I am trying to run the cell in Colab but getting the following error
FileNotFoundError: [Errno 2] No such file or directory: ‘…images/chapter1_cat_example.jpg’.
I have gone through the some of the existing posts on this and could not fine a suitable answer.
@muellerzr can you help…thanks

2 Likes

Hi,
after I upload picture I directly run
img = PILImage.create(uploader.data[0])
is_cat,_,probs = learn.predict(img)
print(f"Is this a cat?: {is_cat}.")
print(f"Probability it’s a cat: {probs[1].item():.6f}").
And it works!

1 Like

Had the same error as @vasanthgx .

I ran the cells before and uploaded the image, but got the same error:

FileNotFoundError: [Errno 2] No such file or directory: ‘images/chapter1_cat_example.jpg’

Pls we need help!

I found a solution in this post: